tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: What gets reloaded on Tomcat automatic reload
Date Wed, 12 Dec 2007 23:54:48 GMT
> From: lightbulb432 [mailto:veerukrishnan@hotmail.com] 
> 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message