"Sessions are written to and read from disk using Java serialization. For
this reason, only serializable objects put into the Session will be written
to disk. Any objects put into the Session that are not serializable will
remain in memory, even if the rest of the Session has been written to disk.
This does not affect session tracking operation, but does reduce the memory
savings that the Session Tracker gets from swapping a Session to disk. For
this reason, the servlet developer should try as hard as possible to put
only serializable objects into the Session. Serializable objects are those
that implement either java.io.Serializable or java.io.Externalizable. "
From
http://jserv.java.sun.com/products/java-server/documentation/webserver1.1/se
ssion_track/SessionTr.html
----------
From: Kirkdorffer, Daniel[SMTP:[EMAIL PROTECTED]]
Reply To: Kirkdorffer, Daniel
Sent: Thursday, April 08, 1999 12:01 PM
To: [EMAIL PROTECTED]
Subject: Session lifecycle
Someone asked about servlet lifecyle. What about session lifecycle?
I was surprised to discover for instance that when I restart the web
server
IBM WebSphere appears to maintain my session object and any basic
Java
objects I might have stored with it (i.e. String, Vector). What are
lost
are objects of my own creation (i.e. myAppObject).
Can someone explain this behavior? I was under the assumption
restarting
the web server would flush any current sessions, and the session
itself, and
restart the servlets.
Thanks,
Dan
--
Daniel Kirkdorffer
Sr. Consultant, Syllogistics LLC
Web: http://www.syllogistics.com/
Email: [EMAIL PROTECTED]
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in
the body
of the message "signoff JSP-INTEREST". For general help, send email
to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".