• 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

JSF components in HttpSession

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JSF stores some components in HttpSession. How does this work in clustered environment?
 
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How it will be different from any other distributed J2EE application. I suppose you would be doing it same way as you do in any other application like either by maintaining server stickiness or by serializing the persisted session data or by persisting in database or say by using any other external tool / app server for the purpose.
 
Sanz Vai
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's true that you can serialize your own session objects and store them, say as Blobs in database. But you are not managing the JSF session objects. They are done by JSF framework.
 
Varun Khanna
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sanz Vai:
It's true that you can serialize your own session objects and store them, say as Blobs in database. But you are not managing the JSF session objects. They are done by JSF framework.



All the JSF object, which implements saveState & restoreState methods will be taken care by JSF. You just need to specifiy
javax.faces.STATE_SAVING_METHOD=client in web.xml
Thereafter you state would be stored in a hidden variable at the client side.
As far as other objects like backing bean in session etc. are concerned, you will need to take care of it.
[ April 14, 2005: Message edited by: Varun Khanna ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic