File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes session.setAttribute for session persistence Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "session.setAttribute for session persistence" Watch "session.setAttribute for session persistence" New topic
Author

session.setAttribute for session persistence

david chan
Ranch Hand

Joined: Jun 10, 2002
Posts: 46
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

Joined: Aug 10, 2001
Posts: 3879
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


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: session.setAttribute for session persistence
 
Similar Threads
Persistence by reachability
How to put all user info into session?
Need the JSP equivalent
how can I set multiple attributes to a session object.
ClassCastException com .ibm.ws.drs.DRSBuffWrapper?