Oracle Weblogic Server 11g Ver:10.3.3.0 HTTP Session Objects on Weblogic Server [message #485906] |
Sat, 11 December 2010 03:20 |
|
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
|
|
|
|