----- Original Message -----
From: "Mike Dickson" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Thursday, June 05, 2008 10:48 PM
Subject: mod_jk api?
Is there any way/api to talk to mod_jk to tell it of a new Tomcat
instance to register it automatically to take load? The only way I can
see of doing this is to POST to /jkstatus. Ideas?
MikeD
Mike, this is a creative guess, never done it, never seen it.... but would
go about it like this, and I think its actually a great question...
You... I think.... want to be able to bring in new TC's behind Apache at
will.
I dont think its totally possible from a blank sheet, but if say you setup a
worker file with 15 tomcats in it.
And then told apache to disable 12 thus leaving just the 3 that you start
with... and then later add more TC's and enable the preset "slots"...
Possible to some extent maybe... if its LB then the JKMounts are probably
all the same, or built with a wild card to alow some expansion.
I think thats possible (but I havnt tried it) because I'm almost sure
JKStatus has ant tasks, and these are built into TC.
Yuk! you say, ant is not want you want ;)
Yes but in TC where theres an ant task, there is documentation and where
there is an ant task there is also a URL based on a GET (normal browser
link) not a POST... and all the params are set in the query ie the
http://yourserver/somethingforJK?TurnMeOn=wada_wada
Its a guess... but I have a feeling you going to end up impressing your
clients.
Put Apache there, Put Tomcat 1,2,3,4..... here... open web page, say
"connect Tomcat to Apache"... and pay ;)
Enjoy.... maybe ;)
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]