you should define in the workers.properties one worker for each tomcat server.
by default there are 2 workers (ajp12, ajp13).
You must define for exemple ajp13_server1 and ajp13_server2 helping you with the ajp13 
definition example.

worker.list=ajp12, ajp13, ajp13_server1, ajp13_server2

#
# Defining a worker named ajp13_server1 and of type ajp13_server1
# Note that the name and the type do not have to match.
#
worker.ajp13_server1.port="port server 1"
worker.ajp13_server1.host=localhost
worker.ajp13_server1.type=ajp13_server1
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#  ----> lbfactor must be > 0
#  ----> Low lbfactor means less work done by the worker.
worker.ajp13_server1.lbfactor=1

#
# Specify the size of the open connection cache.
#worker.ajp13_server1.cachesize

#
# Defining a worker named ajp13_server2 and of type ajp13_server2
# Note that the name and the type do not have to match.
#
worker.ajp13_server2.port="port server 2"
worker.ajp13_server2.host=localhost
worker.ajp13_server2.type=ajp13_server2
#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#  ----> lbfactor must be > 0
#  ----> Low lbfactor means less work done by the worker.
worker.ajp13_server2.lbfactor=1

#
# Specify the size of the open connection cache.
#worker.ajp13_server2.cachesize


then in your mod_jk.conf file you must use the appropriate worker with each web app 
using  somethng like that :
...
JkMount /path/servlet/* ajp13_server1
JkMount /path/*.jsp ajp13_server1
...
...
JkMount /path/servlet/* ajp13_server2
JkMount /path/*.jsp ajp13_server2
...


Arno

> -----Message d'origine-----
> De:   Sumith Ail [SMTP:[EMAIL PROTECTED]]
> Date: jeudi 29 novembre 2001 13:26
> �:    [EMAIL PROTECTED]
> Objet:        Re: running two tomcat servers 
> 
> Hello
> 
> Thanx for the response.
> I played some more with the conf files and was able to
> start two tomcat instance as separate users.
> 
> I need to integrate both of them with Apache web
> server. How to differentiate on which instance to use
> to serve certain context if I use mod_jk with ajp13
> protocol.
> 
> Thank you for all your support
> 
> Regards
> Sumith 
> 
> 
> > Hi,
> > 
> >     I am running two tomcat instances on my machine --
> > sometimes I 
> > run three.  What sort of problems are you having?  I
> > only integrate one 
> > of the instances with the web server, the other
> > one(s) I access 
> > directly by going to the port number assigned to
> > them.
> > 
> >     Like I said, I am doing it with no problems, just
> > have to make 
> > sure that the port numbers are different in the
> > different server.xml 
> > files (I keep all of them separate, so they're all
> > running out of 
> > different directories).
> > 
> > 
> >                                                     Brendan
> > -- 
> > Brendan McKenna                            Email:
> > [EMAIL PROTECTED]
> > Development Strategist                     Phone: +353-61-338177
> > Taringold Ltd.                             Fax:   +353-61-338065
> > 
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
> http://geocities.yahoo.com/ps/info1
> 
> --
> 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