• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where to put properties files specific to each managed server?

 
Ong Vua
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2984
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good suggestion. I'll give it a try.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic