tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christophe Pierret" <cpier...@sparus-software.com>
Subject RE: Re: reload on demand
Date Thu, 01 Mar 2007 11:25:29 GMT
 
> Kent Tong writes:
> 
> Yoav Shapira <yoavs <at> apache.org> writes:
> 
> > There's reloadable as a Context attribute, documented at 
> > http://tomcat.apache.org/tomcat-5.5-doc/config/context.html, and you

> > can also define a list of static resources (not classes) to be
watched 
> > to trigger a reload, via the WatchedResources element.  See the page

> > above and the default Context.xml that ships with Tomcat for an 
> > example.
> 
> Yes, I know about the reloadable flag. But what I'd like is to reload
it
> only when the webapp is accessed again. I don't want it to keep
reloading 
> when I make changes to my Java files. Only when I am ready to test run
it,
> would I like it to reload automatically.

Then you can create a dirty.txt file that you add as a WatchedRessource.
When you are ready to run, "touch" it and it will reload automatically.

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


Mime
View raw message