I can't find any references to how people are configuring applications for different servers. Ideally I should be able to put some sort of application specific configuration file on the server in question before I deploy a WAR. Otherwise deploying to a live Tomcat server cluster would be a nightmare! (deploy, stop the app, alter web.xml, restart -- not an acceptable way to do things!)
How are you achieving this? I just want a simple file somewhere with the key server specific parameters such as which Oracle database to target and whether to cache messages.properties files. We currently use dev, test, beta and live servers and it is not good to repackage the WAR for each server since the binaries should be identical or the testing doesn't hold water.
Also, certain parameters would ideally be shared - for example most, if not all the applications on live will target the same database, so there should be no need to define the connect URL in multiple places on the same server.
Thanks in advance for any input...