How to preserve xml configuration when redeploying using update?

347 Views Asked by At

I'm using tomcat manager to deploy my war files. To update a war I use the following url:

http://localhost:8080/manager/deploy?path=/example&war=file:/path/example.war&update=true

The problem is that using this, the xml with the configuration (under Catalina/localhost/example.xml), is erased.

How can I preserve it?

1

There are 1 best solutions below

4
On BEST ANSWER

Place your configuration in your webapp's META-INF/context.xml and tomcat will take care of the rest.