Where do serialized Objects go?

2002-07-12 Thread August Detlefsen

If I reload a context using the manager, Objects in my session get
serialized -but where do they go? 

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«Ñ   ¯
What would I have to do to clear them out? 

__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

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




Re: Where do serialized Objects go?

2002-07-12 Thread Craig R. McClanahan



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]




Re: Where do serialized Objects go?

2002-07-12 Thread August Detlefsen

Aha. Thanks! I never found them before because that file is deleted
from the filesystem as soon as it is read back in...




--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
 
 
 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]
 


__
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

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