-
1. Re: problem accessing httpSession
vstorm83 Dec 5, 2012 9:25 PM (in response to ltaraud)Hi, can you give more details about how you save an get the session attribute ? Note that in this thread https://community.jboss.org/message/539407 they said that
- The portlets are all in the same .war
- Portlet A sets the value
portletSession.setAttribute("var","value",PortletSession.APPLICATION_SCOPE)
- Portlet B gets the value
portletSession.getAttribute("var",PortletSession.APPLICATION_SCOPE)
Is that the same to your case ?
-
2. Re: problem accessing httpSession
ltaraud Dec 6, 2012 4:00 AM (in response to vstorm83)Hi,
I'm using theses methods.
Each portlet has his own War file.
Using the debuger, I see that :
- the portal has his own HttpSession
- each portlet has his own HttpSession
Thats why one portlet can't see data from an other portlet, looking at his httpSession
Do I need to add a configuration in a file (portlet.xml, server.xml, ...) to share the same httpSession ?
I realy need to share states and data between a lots of portlet.
IPC are not enough because Portlet active but not displayed doesn't receive the events. The next time theses porltet would be displayed, they must be up to date.
How can I do it ?
Thanks.
Laurent
-
3. Re: problem accessing httpSession
kenfinni Dec 6, 2012 8:49 AM (in response to ltaraud)Laurent,
As mentioned here, your problem is a result of each servlet container, or WAR, having their own HttpSession even for the same user.
Ken