RE: [HOW TO] - GLOBAL VARIABLES - PLEASE HELP
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
[HOW TO] - GLOBAL VARIABLES - PLEASE HELP
Hi all Sorry for shouting but I've no hair left so it's the only thing I can do :) Please tell me if it's possible to define a variable in server.xml or somewhere, which is available to all running webapps. I've looked in loads of docs and searched the archive but to no avail. Please please please Donie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [HOW TO] - GLOBAL VARIABLES - PLEASE HELP
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 Donie Kelly wrote: Hi all Sorry for shouting but I've no hair left so it's the only thing I can do :) Please tell me if it's possible to define a variable in server.xml or somewhere, which is available to all running webapps. I've looked in loads of docs and searched the archive but to no avail. Please please please Donie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]