> From: lightbulb432 [mailto:[EMAIL PROTECTED] 
> Subject: What gets reloaded on Tomcat automatic reload
> 
> I ask because, surprisingly, a static variable kept its state 
> across the automatic reload.

Where is the class file for the static variable located?  All classes in
the webapp directory (or .war file) should be lost, since Tomcat creates
a new classloader for the redeployment.  If the class in question came
out of a higher-level library, it won't be affected.  Also, if an object
loaded from a higher-level library is hanging on to references to webapp
objects (a really bad design), you may still see values from the old
deployment.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to