Originally posted by Nicholas Cheung:
Dear Jeff and Dave,
I would like to clarify on my understanding of session mgt of portlets.
For a single page, in case it contains, say, 3 portlets, then there should be 3 portlet sessions, isnt it?
However, as they are based on the same HTTP session, thus, the 3 portlet sessions in fact is based on that HTTP session, and data can be shared by the 3 portlets via the HTTP session, am I correct?
Thanks.
Nick
Yes, three portlets running on the same application server will have mutual access to the application-scoped contents of the HttpSession and vice versa
servlets on the same application server will have access to the application-scoped contents of all of the PortletSession.
So yes, you
can share data in this way, but if you don't control the environment your portlets are running in, you have to bear in mind that the deployer may choose to have only one portlet running, or to serve the portlets from different servers into a WSRP container. So you need to be very explicit about what dependancies exist between your portlets.
Dave.