• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

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.
 
I knew that guy would be trouble! Thanks tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic