Hi Donie,
The second half of this is you need to know how to access it:
try {
Context initCtx = new InitialContext();
String foo = (String)(context.lookup (java:comp/env/foo));
}
catch (NamingException exc) {
// oops
}
Regards,
Mathew
--
Mathew Pole
Web Architect, Gerard Industries
email: [EMAIL PROTECTED] mailto:mathew.pole;clipsal.com.au
www: http://www.clipsal.com http://www.clipsal.com
http://www.custompress.com.au http://www.custompress.com.au
phone: 08 8269 0511 ext 313, fax: 08 8340 1212, mobile: 0403 164 617
Hi Donie,
You can define a variable in the global web.xml (in conf directory).
This variable should be available to all your applications.
This should
come at the end of the $TOMCAT_HOME/conf/web.xml file.
Though I have not used and tested this (I use for a single
application
in application specific web.xml) I feel it should work.
env-entry
descriptionsome description/description
env-entry-namefoo/env-entry-name
env-entry-valuebar/env-entry-value
env-entry-typejava.lang.String/env-entry-type
/env-entry
Raj
--
To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org