[Yanel-dev] redeploying WARs fully automatically

Guillaume Déflache guillaume.deflache at wyona.com
Wed Apr 14 14:31:38 CEST 2010


Hi!

At lunch we discussed what still prevent Yanel webapps to be redeployed 
fully automatically.

A few things we could think of:
- WEB-INF/classes/log4j.properties file which ATM use absolute paths for 
the various log files
- WEB-INF/classes/realms.xml which must point to at least one custom 
realm: ATM we do that using an absolute path

We thought we could maybe use the servlet context temporary directory[1] 
to store the realms.xml file itself or even the path under which it may 
be found.
I am not so sure it's a good idea since it looks like this directory may 
be deleted without notice: the application may be unable to restart 
automatically if this happens... :/

Ideas?

Cheers,
   Guillaume


[1] defined in the servlet specification since v2.2: 
http://java.sun.com/developer/technicalArticles/Servlets/servletapi/ 
look for "javax.servlet.context.tempdir"
Tomcat configuration: 
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html look for 
"workDir" there


More information about the Yanel-development mailing list