aspose file tools*
The moose likes Portals and Portlets and the fly likes Sharing Session Information between two Application Scope? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Sharing Session Information between two Application Scope? " Watch "Sharing Session Information between two Application Scope? " New topic
Author

Sharing Session Information between two Application Scope?

Aaron Raja
Ranch Hand

Joined: Jun 07, 2007
Posts: 206
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


Thanks, AR
SCWCD 5, SCJP 1.4, OCA (PL/SQL)
pulijala hari
Ranch Hand

Joined: May 14, 2005
Posts: 70
Do these both applications stay on the same JVM?
Then try DistributedMap(Dynacache) API from IBM..,
Aaron Raja
Ranch Hand

Joined: Jun 07, 2007
Posts: 206
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

Joined: Aug 26, 2006
Posts: 4968
    
    1

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

Joined: Jun 07, 2007
Posts: 206
Thanks Hari & Cameron!
Bill attagasam
Greenhorn

Joined: Jun 25, 2008
Posts: 5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sharing Session Information between two Application Scope?