Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code 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
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

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.
 
Let nothing stop you! Not even this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic