• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Where to put properties files specific to each managed server?

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 3063
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good suggestion. I'll give it a try.

Thanks
 
Eat that pie! EAT IT! Now read this tiny ad. READ IT!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic