tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: "Gracefull" restart of tomcat
Date Tue, 01 Jun 2010 13:54:59 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

On 6/1/2010 9:33 AM, Caldarale, Charles R wrote:
>> From: Christopher Schultz [mailto:chris@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message