Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sharing Session Information between two Application Scope?

 
Aaron Raja
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a senerio When multiple ear file is deployed (Per my understanding it is multiple application) Can I share session information between these application?
If there is please direct me to the right direction if not any work around?
Thanks
Aaron Raja
 
pulijala hari
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do these both applications stay on the same JVM?
Then try DistributedMap(Dynacache) API from IBM..,
 
Aaron Raja
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It does use the same JVM because it is deployed in same portal server. It is developed based on JSR-168 Spec in Oracle Portal Server 10.1.4
Thanks
[ November 07, 2007: Message edited by: Aaron Raja ]
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As per the Servlet and JSP API, web components deployed in different war files cannot share the same session data. The portlet API builds upon the Servlet & JSP API and shares the same restriction.

Sessions aren't supposed to be shared across war files, or ear files for that matter. Design with this in mind.

-Cameron McKenzie
 
Aaron Raja
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Hari & Cameron!
 
Bill attagasam
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI

I set a session value from portlet jsp file and I am trying to get it in servlet within the same application and I can't seem to get the value.
I am getting null value for the session variable

I did follow the oracle doc from http://download.oracle.com/docs/cd/B14099_19/portal.1014/b14135/pdg_java_adv.htm#CBBGHFIC

but still it's not working

can someone please help me out.

thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic