Application settings per server for tomcat
Posted on 2009-05-10
I have two boxes. One for test, one for production.
On test, I may want the following settings:
On production, I may want the following instead:
There are many ways of accomplishing this:
I have used a singleton class with property files.
I have used context.xml and read environment elements.
IF setting is used in servlet, sometimes have used web.xml,
What are the best patterns, system for solving such a problem? Pros/cons?
Note, this is basic web app. No spring,struts,tiles, etc...