Date: Thu, 31 Oct 2002 11:36:33 -0800 (PST)
From: John Mattos <matt...@yahoo.com>
Reply-To: Tomcat Users List <tomc...@jakarta.apache.org>,
Subject: Setting up an environment variable in Tomcat 4.1
I've set up the envieonment variable needed for my app as follows
Environment variables are *not* system properties. Indeed, system
properties would not be a good choice for things like this, because they
are global to an entire Tomcat installation, while environment variables
are specific to a webapp.
What's wrong with this picture? Am I missing something?
How are you trying to retrieve this value? You should be doing something
InitialContext ic = new InitialContext();
String value = (String) ic.lookup("java:comp/env/indemand.env");
To unsubscribe, e-mail: <mailto:tomc...@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomc...@jakarta.apache.org>