Home » Fusion Middleware & Colab Suite » Weblogic & Application Server » Oracle Weblogic Server 11g Ver:10.3.3.0 HTTP Session Objects on Weblogic Server (Oracle Weblogic Server 11g Ver:10.3.3.0, OS:RHEL-4 (Server Edition) on IBM XServer)
Oracle Weblogic Server 11g Ver:10.3.3.0 HTTP Session Objects on Weblogic Server [message #485906] Sat, 11 December 2010 03:20 Go to next message
cmzala
Messages: 11
Registered: December 2010
Location: Ahmedabad
Junior Member
We are using Oracle Weblogic Server 11g Ver:10.3.3.0 (Production Environment).
We have created 4 Managed Servers on one Cluster, setup Node Manager and a Machine on a single server,
there is no multiple hardware of AS at present. The instances and (deployed applications) are working fine individually.

The Problem:
I access my web application (through a browser) from one Managed Server (i.e. ServerA for example)
and use some HTTP Session objects; the application works fine here.
e.g. session.setAttribute("USER_NAME",userName) or session.getAttribute("USER_NAME") in a JSP file.

Now, when I access second Managed Server (i.e. ServerB for example) from a new browser window (same browser),
the HTTP Session Object I set on the ServerA gets removed!!!

I can work only on any one Managed Server at a time.

If I access one Managed Server from "Mozilla Firefox" browser, and another Managed Server from "Netscape Navigator";
both application works fine without any session related problem.


NOTE: We are using multiple services on OC4j on Oracle 9i Application Server and working fine.

There may be some FLAG to set on the Oracle Weblogic Server 11g, I guess.

The code I am using to check the session object:

[Test1.jsp] (to set/get the session object)
	String userName=null;
	try {
		userName = (String)session.getAttribute("USER_NAME");
		if(userName == null) {
			userName = "abc.xyz";
			session.setAttribute("USER_NAME", userName);
			out.println("NEW NAME SET<Br>");
		}
		out.println("userName ["+userName+"]");
	} catch(Exception ex) {
		out.println("Msg ["+ex.getMessage()+"]");
	}

[Test2.jsp] (to check the value of session object)
	String userName=null;
	try {
		userName = (String)session.getAttribute("USER_NAME");
		if(userName == null) {
			userName = "No Name";
		}
		out.println("userName ["+userName+"]");
	} catch(Exception ex) {
		out.println("Msg ["+ex.getMessage()+"]");
	}


Thank You.

CMZala

[Updated on: Sat, 11 December 2010 04:27]

Report message to a moderator

Re: Oracle Weblogic Server 11g Ver:10.3.3.0 HTTP Session Objects on Weblogic Server [message #539964 is a reply to message #485906] Thu, 19 January 2012 10:06 Go to previous message
tech_v
Messages: 1
Registered: January 2012
Location: INDIA
Junior Member
Hi, We are facing the same issue in our environment. Pls suggest possible solutions
Previous Topic: Error FRM-92102
Next Topic: FAILED TO START SSO SERVER!
Goto Forum:
  


Current Time: Thu Mar 28 23:57:06 CDT 2024