tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Two contexts of the same webapp
Date Thu, 18 Feb 2010 22:06:23 GMT
> From: Mario Splivalo [mailto:mario.splivalo@megafon.hr]
> Subject: Re: Two contexts of the same webapp
> 
> But, now, I'm wondering, since I'll be having dozens of the same
> applications, I'd like to automate deploying using war files. In
> that case, having separate war file for each instance forces me to
> have several same docBase directories?

Instead of a separate .war file for each, can you configure the different settings in each
app's <Context> element?  That would let you have one .war file, but different .xml
files all having the same docBase.

Look here for individualized <Context> settings:
http://tomcat.us.apache.org/tomcat-6.0-doc/config/context.html#Context%20Parameters
http://tomcat.us.apache.org/tomcat-6.0-doc/config/context.html#Environment%20Entries
http://tomcat.us.apache.org/tomcat-6.0-doc/config/context.html#Resource%20Definitions

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus
for use only by the intended recipient. If you received this in error, please contact the
sender and delete the e-mail and its attachments from all computers.

Mime
View raw message