RE: Getting arbitrary environment variables from webapp

2009-10-01 Thread Mike Baranski
Thanks! >-Original Message- >From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] >Sent: Wednesday, September 30, 2009 3:47 PM >To: Tomcat Users List >Subject: RE: Getting arbitrary environment variables from webapp > >> From: Mike Baranski [mailto:list-s

RE: Getting arbitrary environment variables from webapp

2009-09-30 Thread Caldarale, Charles R
> From: Mike Baranski [mailto:list-subscripti...@secmgmt.com] > Subject: Getting arbitrary environment variables from webapp > > Is there a way I can specify an environment variable via > the startup.sh Create a setenv.sh script in Tomcat's bin directory and export whatever

Getting arbitrary environment variables from webapp

2009-09-30 Thread Mike Baranski
Is there a way I can specify an environment variable via the startup.sh that I can then use System.getenv("MYWEBAPP_CONFIG_FILE"); to get it from within my application? I need to store a file outside of the webroot to read configuration from, so that if a user changes this file, it will not get o