Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Shared Session Contexts

 
moola reddy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Is there way in the Websphere App Server 6.0 to make servlets/jsp running in two different servlet contexts to share the Session attributes.

We worked out the solution in the Tomcat. Which allows to share sessions when jsp/servlets are running in two different contexts.

I could not see the session management GUI specifying the option for Shared Session Contexts in Websphere 6.0.

When i browsed through the google, i could see some results pointing session sharing in Websphere 5.0.

Do any one help me out understanding how to make the jsp/servlets share the session attributes in Websphere 6.0

Thank you
 
Ed Smith
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is possible as long as the war files are rolled up inside one ear.

If you are using Rational Application Developer, you can go to the enterprise application and open the /META-INF/application.xml file in the Deployment Descriptor Editor. From there, go to the Overview tab and check the "Shared session context" box.

This generated a file called ibm-application-ext.xmi in the META-INF folder under RAD. If you are not using RAD, please let me know and I will post the contents of this file for you.

Cheers,

Ed
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic