-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

On 6/1/2010 9:33 AM, Caldarale, Charles R wrote:
>> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
>> Subject: Re: "Gracefull" restart of tomcat
>>
>> With autoDeploy="true", you ought to just be able to update your .class
>> or .jar files and Tomcat will automatically restart the webapp.
> 
> Not quite; files to be monitored for changes have to be specified in a 
> <WatchedResource> element nested inside the webapp's <Context> element.  By 
> default, this is only WEB-INF/web.xml, so a touch of that file should trigger 
> a restart of the webapp without taking Tomcat down.

My experience is that if a .class file has been loaded by the
WebappClassLoader and it gets updated, the webapp is reloaded. The same
is true of a .class file loaded from a .jar file in WEB-INF/classes: if
the .jar file changes, the webapp is auto-reloaded.

I can observe this behavior in both 5.5(.25/.26/.27/.28) and 6.0(.26).

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwFETIACgkQ9CaO5/Lv0PDEhQCeJLBfvpfIjF/a3NEYeCRRegkX
O/kAn0R05Ze3qyUrqHQTsTCFRlE+B3CL
=SYs8
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to