"Paul Hammes" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi all,
>
> I have a webapplication wich is distributed in one war for different 
> customers.
> Unfortunately there are customer specific settings I normally would like 
> to define in the enclosed web.xml.
> Because this would lead to, that I have to pack one war per customer, I am 
> looking for a more comfortable solution:
>
> Do you know a pattern how to define these settings externally of the 
> war-file?
>

This is specific to Tomcat, so won't work if you move containers.  But if 
you can edit the startup, then you can define them as System properties 
(e.g. -Dmyapp.ClientName=client), and in your web.xml have something like:
   <context-param>
      <param-name>ClientName</param-name>
      <param-value>${myapp.ClientName}</param-value>
   </context-param>

Any TC 5.5 or higher will do variable substitution when parsing the web.xml 
file.

> Thanks in advance,
>
> Paul
> -- 
> Psssst! Schon das coole Video vom GMX MultiMessenger gesehen?
> Der Eine für Alle: http://www.gmx.net/de/go/messenger03
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> 




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to