The easiest way is to run multiple copies. For example: /usr/local/tomcat1/ ... /usr/local/tomcat2/ ... /usr/local/tomcat.../ ...
If the configurations are the same, then you can use the same copy of server.xml for all the instances. Then for items which need to be different such as port and ip address, use you pass system properties on startup and have them substitued in server.xml.
export JAVA_OPTS='-Dfoo=8080'
<Connector ... port="${foo}"/>-Tim
Greg Lappen wrote:
Hello-
I currently am using Tomcat 5.0.28 for both our production and test server. Currently, I have one copy of the tomcat distribution in /usr/local/tomcat, two different server.xml files (server-prod.xml and server-test.xml) in /usr/local/tomcat/conf and two different scripts in /etc/init.d to start the prod and test servers. Each server has its own directory under /usr/local/tomcat/conf/Catalina, and the ROOT.xml file in each case defines a different log file for the application. Everything seems to work fine, but both instances are writing to /usr/local/tomcat/logs/catalina.out.
My question is can the filename "catalina.out" be controlled so each instance writes to a different file?
Also, I'm thinking that I probably don't want them both running off the same install directory because what if I want to test a new version of Tomcat in the test environment? The only thing I'm saving by having them both run from the same directory is a few megs of space right?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
