Suri Vis

Greenhorn
+ Follow
since Mar 02, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Suri Vis

I'm curious to find out how we can set environment variables in the Sun Webserver 7. As an example, if I had an application in Tomcat, I would be able to set these variables in the abc.xml configuration file under /conf/Catalina/localhost/. In the file I would have a variable for the application set as . I have looked through the documentation of the webserver but have not found anything relevant. The closest thing I came across was a way to set some variables which could only be used by the obj.conf file or something.

The reason I need this is because I'm trying to store my overall environment specific data in the database but need a value external to the application ideally (so as to preserve a single build concept) that would identify the application uniquely if it has multiple instances where each instance's properties might differ.

Thanks for any advice.
12 years ago
As an extension to this question I'd like to ask the following. One of the things we're trying to do as part of re-addressing our build/deploy processes for applications is to be able to create a "build once" approach to deploy the artifact in all environments - so that the property files remain external and independent of the build. I'm trying to figure out how this can be done effectively and I came across the Apache Commons Configuration project. Not sure if anyone here has experience on it, but the question is, if we have property files for 3rd party libraries such as quartz.properties or displaytag.properties or oscache.properties or even log4j.properties etc. If we were to use the Commons configuration, how would these then be recognized by their respective libraries. I'm not really sure how the Commons configuration works - so any input on either of the areas would be helpful.
14 years ago