Yes, I've done this.  You need to hand-tailor workers.properties (I copied
it to workers.https and then modified it.)  Your customized workers should
use the standard ports.  Set one virtual server to communicate using ajp12,
and the other using ajp13.  Then in your the ** original **
workers.properties for one of the tomcats, change ajp12 to use an unused
port, e.g. 8008, and also update server.xml to use this port. Now, start
both tomcats, then start apache.  Your apache will talk to one of the
tomcats on ajp12, and the other on ajp13.  You can still shut down the
tomcat under which you changed ajp12, since you have it running, just on a
different port.

-----Original Message-----
From: Dan Kummer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 08, 2001 3:20 PM
To: '[EMAIL PROTECTED]'
Subject: Multiple instances of Tomcat


Has anybody successfully gotten multiple instances of Tomcat running with a
single apache instance?
What I want is to be able to have different servlets served by different
tomcats to enable me to shutdown an instance with out killing the other
servlets.
I would also like to balance the load over multiple CPU's for obvious
reasons.

Background:
OS: FreeBSD 4.2
Apache: 1.3.14
Tomcat: 3.2.1
Functioning with multiple virtual servers and a single tomcat for example
http://server1 <http://server1>  an http://server2 <http://server2>  are
both being handed off to a single tomcat instance.
What I would like is for http://server1 <http://server1>  to be handled by
one tomcat instance and http://server2 <http://server2>  to be handled by
another.

I have seen some documentation on this but it is very limited.
Any help would be appreciated
Please cc me in replies.

Thanks

Dan Kummer
Requisite Technology
[EMAIL PROTECTED]
Office: (303) 474-2204
Office fax: (303) 474-2211
E-CONTENT SOLUTIONS THAT POWER B2B E-COMMERCE



CONFIDENTIALITY NOTICE
This electronic mail transmission and any accompanying documents contain
information belonging to the sender 
("Information") that may be confidential and legally privileged.  If you are
not the intended recipient, any disclosure, copying,
distribution or action taken in reliance on the Information is strictly
prohibited.  If you have received the Information in error,
please contact the sender by reply email and destroy all copies of the
original email.
 Thank you.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to