tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <>
Subject Re: 'Parametrizing' context.xml?
Date Tue, 15 Dec 2009 01:29:16 GMT

"Mario Splivalo" <> wrote in message
> Is there a way to 'parametrize' context.xml, for instance, in a manner
> one can 'parametrize' build.xml?
> For some webapplication in context.xml one puts, for instance, JDBC
> specific stuff. But, several developers can have different 'properties'
> for the database (different user accounts, and so on).
> Is there a way to parametrize those somehow, or each developer need to
> have separate context.xml?
> Mike

Tomcat also supports ant-style variable replacement, so using that then 
Ken's example would look like:

where BPVAL is a Java system property (that can be set in for example).

Of course, this only works for Tomcat.  Ken's suggestion will work on any 
servlet container. 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message