• 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

Property Files For Different Servers in WebSphere

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello-

I'm working in WebSphere, and am pretty new to it. I have an application that I run on three different WebSphere servers (nameed dev, qa, and prod). For my application, it requires different server properties or each different server. This information is stored in a .properties file. I have three different .properties files (one for dev, qa, and prod).

Is there some way to be able to load the specific properties file with the server? Or is there another way to relate the server and properties file, so that each time I run my application, it can automatically pick the correct properties file to use? It's a big waste of time to keep having to manually change the files when it's run on different servers.

Thanks for you help!

-Tabitha
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tabitha,
There are two options for doing this:

1) Use Ant (or manually) create different ear files for each environment's server with the correct property files.
2) Keep each set of property files in a separate folder. When deploying, point the classpath to the proper folder.
 
reply
    Bookmark Topic Watch Topic
  • New Topic