aspose file tools*
The moose likes BEA/Weblogic and the fly likes Where to put properties files specific to each managed server? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Where to put properties files specific to each managed server? " Watch "Where to put properties files specific to each managed server? " New topic
Author

Where to put properties files specific to each managed server?

Ong Vua
Ranch Hand

Joined: Jan 24, 2008
Posts: 59
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.

Do you have any idea?

I use WL 10.3.2 on linux



Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2851
    
  11

Ong Vua, huh?

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.

Best Regards,
Ong Troi

Ong Vua
Ranch Hand

Joined: Jan 24, 2008
Posts: 59
Good suggestion. I'll give it a try.

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where to put properties files specific to each managed server?