* Craig R. McClanahan <[EMAIL PROTECTED]> [0349 16:49]:
> 
> > * Craig R. McClanahan <[EMAIL PROTECTED]> [0312 07:12]:
> >
> > Thanks for that, Craig - top perfromacen tuning tips!

(In defence of the worst spelling of 'performance' ever witnessed
by man, could I explain I have particularly painful RSI today)

> > With this in mind, is there a definitive way to
> > ensure clients get a 'fresh' copy of a webapp?
> > How does tomcat/catalina decide when a webapp has been updated -
> > doe sit look at the war before using the expanded content, for example?
 
> Are you talking about the case where you just drop a WAR file into the
> webapps directory?  

That's right, I've got an ant task that just copies the war into
place (the deploy task doesn't seem to make the webapp 'stick'
over a server restart).

> if you've got expandWARs set to true, the WAR will be
> expanded into a directory with the same base name -- *if* it does not
> exist already.  However, if the directory exists Tomcat will *not*
> re-expand the updated WAR, so you have to remove the old directory first
> (as well as replace the WAR).

Gotcha. That's a 2 line diff to my build.xml, thanks.
Can I just confirm that tomcat doesn't need a restart to detect this;
i.e. if I 'rm -r' the extracted webapp folder, then put a new warfile
into webapps/ , it'll be redeployed?


-- 
Rasputin :: Jack of All Trades - Master of Nuns

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to