On Fri, 12 Jul 2002, August Detlefsen wrote:

> Date: Fri, 12 Jul 2002 18:31:01 -0700 (PDT)
> From: August Detlefsen <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
>      [EMAIL PROTECTED]
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Where do serialized Objects go?
>
> If I reload a context using the manager, Objects in my session get
> serialized -but where do they go?
>

They get serialized to a file called SESSIONS.ser in the work directory
for each webapp.  NOTE - only session attributes that are Serializable get
the benifit of this.

> Are they actually written somewhere or only stored in memory?
>
> Do Objects get serialized when you do a full Tomcat restart? If so,
> where? Is there any chance that an Object could survive a full restart?
> %0«Ñ  ¯

Yes, they survive a full restart as long as you don't delete the
SESSIONS.ser file.

> What would I have to do to clear them out?
>

cd $CATALINA_HOME/work/{servicename}/{hostname}/{context-path}
rm SESSIONS.ser

Craig


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to