The moose likes Other Java Products and Servers and the fly likes How would we set environment variables in Sun Webserver 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Reply Bookmark "How would we set environment variables in Sun Webserver 7" Watch "How would we set environment variables in Sun Webserver 7" New topic
Author

How would we set environment variables in Sun Webserver 7

Suri Vis
Greenhorn

Joined: Mar 02, 2010
Posts: 2
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.
 
IntelliJ Java IDE
 
subject: How would we set environment variables in Sun Webserver 7
 
Threads others viewed
migration for was 5.1 to was 6.1 in production env
how to setup multile instances specific parameters of a same web application ?
Tomcat installation Problem
Two JDK on a machine
response.setContentType("application/download"); not working
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com