In what situations, if ever, is it safe to run `ant update` while Tomcat is 
running?

I've mapped my webapps for Tomcat using "Technique A" (defining a context that 
points to [dspace]/webapps/[app]).

In a development environment, I've played around with running `ant update` 
while Tomcat is running. Most of the time, Tomcat seems to reload the web 
application appropriately and continues to serve requests. Occasionally I will 
get errors or a blank page after doing so, which continue until I restart 
Tomcat (which resolves the issue).

Would using WARs make this safe? That is, if I added the "-Dwars=true" option 
to `ant update` and updated my Tomcat contexts to point to 
[dspace]/webapps/[app].war instead, would it be okay to update my webapps while 
Tomcat is running? Or is there other stuff going on in `ant update` that is 
potentially going to break Tomcat?

Thanks,

Jacob
------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to