In the case of Tomcat (or any Java App), the config files can't be read until the app is up and running. Since JAVA_HOME is used to find the JVM, it makes perfect sense to use an evironment variable. Otherwise, you'd need one config file for the app and another for the startup scripts.
On Thursday 17 July 2003 01:58 pm, Shapira, Yoav wrote: > Howdy, > This is a basic unix question, not specific to tomcat. Without going > into technical details, I would say environment variables are one way to > define these properties. There are other ways, e.g. in your > configuration files. > > Yoav Shapira > Millennium ChemInformatics > > >-----Original Message----- > > From: Juan Nin [mailto:[EMAIL PROTECTED] > > >Sent: Thursday, July 17, 2003 1:48 PM > >To: [EMAIL PROTECTED] > >Subject: Environment variables, are they really needed?? > > > >Maybe dumb question... > > > >All the tutorials, etc. I've seen talk about defining CATALINA_HOME, > > and > > >JAVA_HOME as environment variables (and sometimes also CLASSPATH) > > > >I didn't define anything as environment variables, mine are just > > defined in > > >workers.properties and tomcat4.conf > > > >In workers.properties, among other things I have: > > > >workers.tomcat_home=/var/tomcat4 > >workers.java_home=/usr/java/j2sdk1.4.1_03 > >worker.inprocess.class_path=/var/tomcat4/common/lib/servlet.jar > > > >and in tomcat4.conf I have: > > > >JAVA_HOME="/usr/java/j2sdk1.4.1_03" > >CATALINA_HOME="/var/tomcat4" > > > >and things work fine without environment variables > >are they just two ways of doing it, or I may have something wrong? > > > >Thanks again, > > > >Juan > > > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > This e-mail, including any attachments, is a confidential business > communication, and may contain information that is confidential, > proprietary and/or privileged. This e-mail is intended only for the > individual(s) to whom it is addressed, and may not be saved, copied, > printed, disclosed or used by anyone else. If you are not the(an) intended > recipient, please immediately delete this e-mail from your computer system > and notify the sender. Thank you. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Souther F.W. Davison & Company, Inc. REGISTER NOW FOR THE SCORPEO USER CONFERENCE! September 18-19, 2003 in Boston/Brookline, MA Additional Training Sessions held September 17, 2003 More info >> http://www.fwdco.com/services/Uconf03/default.shtm --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
