I dont' see why you can't just 

org.apache.catalina.startup.Bootstrap.main()
twice

just change the system hash to change the catalina.base and catalina.home ...so


System.getProperties().put("catalina.base","/home/tomcat1");
System.getProperties().put("catalina.home","/home/tomcat1");
// start this in a thread?
org.apache.catalina.startup.Bootstrap.main(new String[] {"start"});


System.getProperties().put("catalina.base","/home/tomcat2");
System.getProperties().put("catalina.home","/home/tomcat2");
// start this in a thread?
org.apache.catalina.startup.Bootstrap.main(new String[] {"start"});


not the change in the system properties.

anyone disagree?


Chris

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 1:05 PM
To: [EMAIL PROTECTED]
Subject: Multiple root context applications


Hi,
I have an application which deploys in the root context of Tomcat. Now the 
problem is that I want to deploy multiple instances of this application on one 
machine only. 
One way is to run multiple tomcats on different ports. Is there any other 
better way ?
Tomcat 4.x supports different instances. But I am not able to figure out if 
that implies multiple tomcat instances with different server.xml etc can be run 
at the same time !! 
I am not averse to using multiple ports .

Thanks in advance for help. 

manjul sahay


---------------------------------------------
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to