tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: customer specific settings of webapps
Date Wed, 20 Aug 2008 02:23:27 GMT

"Paul Hammes" <Paul.Hammes@gmx.de> wrote in message 
news:20080818141327.291860@gmx.net...
> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
> 




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


Mime
View raw message