• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Design consideration between resource environment entries and application server process definition

 
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The premises of this question is that I have URLs which changes based on the WAS installation box so I would like to hardcode the url as a property. I wanted to know which would be best between using properties file, system environment properties and resource environment entries.

I though that properties file would involve changing the source code for each environment. Resource environment entries on the other hand is too much work (Resource URL) and also it is exposed to the whole cluster and not that particular server.

I liked using the application server process definition since I only need to add an entry to
Application servers > server1 > Process Definition > Java Virtual Machine > Custom Properties
and this can be invoked by


Any thoughts ?
 
Ranch Hand
Posts: 446
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I generally prefer keeping such information in either property files OR defining them as Resource URL.

Property files are the most flexible way of handling it as you can change it using build scripts or manually.
 
Jay Abrahm
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Controlling it via the build makes sense and we were doing that earlier but somehow ever since I shifted it to the server properties I felt that was better since I could just tweak my server properties and all the ears running inside that cluster gets fixed instead of changing individual build scripts.

Not sure if this is the best but I felt it reduced a lot of effort when moving environments.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!