Right now I have a web app and I deployed it to QA managed server. I put the QA properties file under the domain location instead of inside the WAR file so in case I want to change a value in it, I can do it and reload the web app to re-read the values.
I want to deploy the same web app to PROD managed server. Where do I put the PROD properties file because the name of the file is the same for both QA and PROD. The only difference is the values inside it.
Ideally, I want to run these 2 web apps at the same time, one will use the QA properties file and the other will use the PROD properties file.
I'd work out a way to just distribute the correct properties file for each server. However, you could put a property definition into the WebLogic startup script. Something like "-Denvironment=qa". I believe that value would then be available in System.properties and you could append it to your base properties name to load the specific properties file for the server.
Joined: Jan 24, 2008
Good suggestion. I'll give it a try.
subject: Where to put properties files specific to each managed server?