aspose 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 The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "session.setAttribute for session persistence" Watch "session.setAttribute for session persistence" New topic

session.setAttribute for session persistence

david chan
Ranch Hand

Joined: Jun 10, 2002
Posts: 46
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?
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
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 Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at for other WebSphere information.
Have you tried LearnNowOnline?
subject: session.setAttribute for session persistence