tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Barrett <jbarr...@sawyermedia.com>
Subject Re: what *really* happens when you reload or stop/start a webapp?
Date Fri, 02 Jan 2004 19:48:34 GMT
No, this is just an example.  What I'd like to know is if stop/start or 
reload has the same effect on a webapp as actually shutting down tomcat 
and starting it back up.

+jeff


QM wrote:
> : would everything get dumped and reset -- would that static variable go 
> : back to it's original state when the class file is first loaded?
> : 
> : I should probably be asking a more specific question about classloaders 
> : and sandboxes and whatnot, but I'm not sure how this stuff works in 
> : tomcat and I'm not familiar w/ classloaders beyond their basic operation.
> 
> I'm not familiar with how the manager app "reloads" apps, but you
> could perform an experiment to find out:
> 
> If you already have such a static var in question, write a quick JSP
> that prints that value to screen.  Fire up your app, hit this JSP (to
> catch the initial/default value). 
> 
> Call the servlet/whatever that changes that value.
> 
> Next, reload Tomcat using the manager app.
> 
> Hit the JSP again (make sure to force a reload in your browser).
> Compare the printed value to the original/default.
> 
> 
> Also, is there any reason you require this to be a static variable?
> 
> -QM
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message