First of all thanks for the rapid answers and your time!
I think I did not describe the scenario correctly, so I do this now:

Assume you have a tomcat 'multiple-instances' setup like this
/srv/tomcat/instance-1/
/srv/tomcat/instance-2/
...
/srv/tomcat/instance-n/

Every instance dir is a full tomcat "CATALINA_BASE" directory with 
+ instance-i
  |
  +- conf
  +- logs
  +- temp
  +- webapps
  +- work

A continuous integration shell-script copies to any instance (1..n) a built
.war-file whose filename-suffix varies on application, version, timestamp
and build-id. The scripts copies the .war into the instance-i/webapps
directory via cp over ssh in the intranet.

My question is how to mount the .war-file 'dynamically' as the instance's
root context application?

Currently all .war builds have a fixed name, assume myapp-3.2.war, and all
server.xml's in any instance-i/conf do have the section:
<Context path="" docBase="myapp-3.2" />

That way it is guaranteed, that the myapp-3.2.war is started up and mounted
as the tomcat instances' root context.

However, is it possible by a clever configuration, to deploy any
war-filename to any instance-i/webapps directory, so that the war -
regardless of its filename - is mounted at the instance's root context?

jenskreidler
-- 
View this message in context: 
http://old.nabble.com/Deploying-ROOT-Context-for-variable-.war-filename-tp32216447p32217790.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to