"Mario Splivalo" <mario.spliv...@megafon.hr> wrote in message 
news:4b266622.5060...@megafon.hr...
> 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:
  <context-param>
     <param-name>baseprefix</param-name>
     <param-value>${BPVAL}</param-value>
  </context-param>

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

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




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

Reply via email to