Hi,
   I realize that conf/context.xml is not the place to put application
settings as this file is for Tomcat-instance-wide settings. I tried putting
the settings in context directories, e.g.,
conf/Catalina/localhost/context.xml.default . But changes to this did not
get picked up either. These seems to me like a bug in Tomcat.

Using META-INF/context.xml would not do it for me, because I want to leave
deployment-specific settings outside the webapp (outside its WAR). That way
I can easily deploy and upgrade of the code without blowing away settings
which are specific to that deployment/instance of the WAR.

In my case, there is an identical WAR which is copied around and deployed
for different customers, so my context.xml may have customer-specific
settings, for example.

What's the best-practice way to do this in the Tomcat environment?


Hanan


Caldarale, Charles R wrote:
> 
>> From: hanan herzog [mailto:[EMAIL PROTECTED]
>> Subject: Do context.xml Parameter value changes require
>> Tomcat restart?
>>
>> I am using context.xml to configure my web application.
> 
> Where is your context.xml located?  It should be under the webapp's
> META-INF directory.  The conf/context.xml file is shared across all
> webapps and must not be used for individual webapp settings.  Changes to
> that one do require a restart of Tomcat.
> 
>> But when I change values in the context.xml, the
>> application does not see the changes, unless I
>> restart tomcat:
> 
> You must at least restart the application.  Tomcat will normally do this
> automatically for you when you update the webapp's META-INF/context.xml,
> and you should see log entries to that effect.
> 
>  - 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.
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Do-context.xml-Parameter-value-changes-require-Tomcat-restart--tp19297752p19301037.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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