> From: Markus Fischer [mailto:mar...@fischer.name]
> Subject: Configuring different environment variables for different
> vhost context?
> 
> in tomcat55/Catalina/hudson-test.dev/ROOT.xml I have
> <Context docBase="/data/java/archives/hudson-1.322.war">
>     <Environment name="HUDSON_HOME" type="java.lang.String"
> value="/data/java/hudson-test"/>
> </Context>

I think you're confusing environment variables with environment entries - they 
are completely different things.  Environment variables have a scope of 
process, and are accessed in Java via System.getenv().  Environment entries 
(what you have configured) have a scope of webapp, and are retrieved via JNDI 
lookup.  Read the servlet spec.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to