Right now, all application-specific configuration is done in conf/Catalina/localhost/myWebApp.xml
, and this file changes between different deployment scenarios (test/production/personal, etc). My initial thought was to create multiple configuration files named for the explicit configuration. Ideally, these deployment-specific configuration files would be interchangeable. That is, a switch of a configuration file containing parameters that change between deployments would be the only configuration change needed to switch a deployment.
What's the best way to go about doing this? Can I override properties with tomcat? How can I use more than one configuration file for a webapp context? If I can override, how do I specify override precedence?
Thanks.