I could set up different system properties for different webapps in Websphere Application Server. I can’t recall if it was running different JVMs or not for each webapp.
Paul, I didn’t quite fiollow how you solve this problem. Are setting two different keys in the system properties for two webapps (config1 and config2) pointing to the properties file?
That approach doesn’t work for me. I have a class that looks up properties from XML properties file, key-value pair properties file and the database to create a hashmap of properties. It locates the properties file by reading the value of the “config” key in the system properties. All my applications use this class to get properties. So for webapp1 and webapp2, I need to set “config” in the system properties.
As I said, I could do this in WAS. Is there no way to do this in some deployment file in Tomcat and have the webapp run in a real or simulated JVM?