Sorry for the late reply, Rainer.

There is, in principle.  Set deployXML to false in the Host declaration in your 
server.xml and it will do exactly what you want.  On the flip side, tomcat will 
remove the configuration when the app is undeployed, so you need a little care 
in your deployment process.

--
Mike 

-----Original Message-----
From: Rainer Frey [mailto:rainer.f...@inxmail.de] 
Sent: Tuesday, June 23, 2009 3:07 AM
To: Tomcat Users List
Subject: Re: Context.xml not updating dataSource

On Monday 22 June 2009 13:53:47 Mark Thomas wrote:
> >> Edit the copy of the context.xml file and all will work as you expect.
> >
> 1. In production, the operations folks don't have to unpack the app,
> edit the context file and re-pack the app to edit the configuration.
>
> 2. When a new version of the app is installed, the environment specific
> configuration isn't lost.
>
> If you want to remove the old configuration, undeploy the app first
> which will remove the old configuration file.

A an aside, wouldn't it be nice if it were configurable whether tomcat copies 
the context.xml to $CATALINA_BASE/conf?  Then administrators could decide to 
never have local configuration and always rely on the config within the war?

> Mark

Rainer

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


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

Reply via email to