Desarrollo wrote:
>
> thanks for the help...
>
> somebody could point me to a sample to
> serialize and deserialize all session objects
> to and from a persistent store.
Well, I just remembered that there was a discussion on this list just a few
weeks ago about how session object are not serializable. So the task becomes a
little harder. You have to extract the object references from the session
(HttpSession.getAttributeNames, getAttribute), decide which objects are
serializable (ref instanceof Serializable), store those in another collection
(Hashtable, etc.), then serialize.
Which servlet container are you using? Are you SURE it doesn't retain sessions
between class reloading?
Serialization: http://java.sun.com/docs/books/tutorial/essential/io/index.html
Collections: http://web2.java.sun.com/docs/books/tutorial/
Java Tutorial: http://java.sun.com/docs/books/tutorial/index.html
K Mukhar
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html