• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

To the author: Portlet session management

 
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Author
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
reply
    Bookmark Topic Watch Topic
  • New Topic