tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Stevens <...@latchkey.com>
Subject Re: classreloading and 4.x
Date Wed, 03 Jan 2001 02:58:02 GMT
on 1/2/2001 6:22 PM, "Craig R. McClanahan" <Craig.McClanahan@eng.sun.com>
wrote:

> I just tried this again (against current CVS code) with Vincent's original
> test
> cases and it works fine for me.  I can send you the test suite if you like, to
> verify that it works/doesn't work in your environment.
> 
> One issue that might cause this appearance is if you don't wait long enough.
> By
> default, Tomcat 4.0 checks for classfile changes every 15 seconds, if
> reloadable
> is set to true.  You can change this as follows:
> 
> <Context path="" docBase="scarab" reloadable="true">
> <Loader checkInterval="5"/>
> </Context>
> 
> As an alternative (and this works even on apps that you have not defined as
> "reloadable" in server.xml), consider this strategy:
> 
> * Install the "manager" webapp that comes with Tomcat if not
> present already.
> 
> * Create a user with role "manager" in server/tomcat-users.xml
> (actual username and password are arbitrary).
> 
> * Whenever you want to restart Scarab, issue an HTTP request to:
> http://localhost:8080/manager/reload?path=/xxx
> where /xxx is the context path (empty string for the root webapp).
> 
> * You will need to log on (BASIC authentication) the first time you
> do this, with the username/password you created above.

Na. That is annoying. :-) I would rather just have this check turned down to
something like 3 seconds. I didn't realize that there is a Loader
checkInterval setting.

BTW, where is the DTD for the server.xml file? There isn't one defined at
the top of the file.

> NOTE:  In reviewing the code, it looks like this won't handle the root webapp
> correctly until I do a quick bugfix, but the basic principle applies.

Can you email me privately a copy of the fixed server.jar file as I can't
build Tomcat yet. :-)

thanks,

-jon

-- 
Honk if you love peace and quiet.


Mime
View raw message