Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

Where to put properties files specific to each managed server?

 
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



 
Sheriff
Posts: 3036
12
Mac IntelliJ IDE Python VI Editor Java
  • 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
 
Live ordinary life in an extraordinary way. Details embedded in this tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic