File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session.setAttribute for session persistence

 
david chan
Ranch Hand
Posts: 46
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a question about WAS 5 memory-to-memory session persistence:
If I have a user object stored in session in the begining the object created,
Do I need to call session.setAttribute each time the user object got updated, so that it will be updated on other node?
Thanks.
David
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, absolutely, positively. If you do not call setAttribute() it will most certainly NOT get updated. The same, by the way, applies for using a shared database as the session sharing mechanism -- if you don't call setAttribute() it won't get persisted!
Kyle
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic