You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Jeff Genender <jg...@savoirtech.com> on 2005/11/14 19:44:35 UTC

[LONG]Tomcat clustering enabling GBeans howto - Part 2

Part 1 showed a simple clustering for the Engine.  This is doable at the 
host level as well by *not* setting the CatalinaCluster attribute for 
the Engine, but setting it for the Host.

Now what about the Context?  This is where the geronimo-web.xml comes in...

You will create your TomcatCluster Gbean in the geronimo-web.xml file. 
In the Tomcat namespace, there is a new parameter called "cluster"...so 
you would add the following to your geronimo-web.xml:

...
<cluster>TomcatCluster</cluster>
...

This must come after the <tomcat-realm> and before the naming tags.  See 
the geronimo-tomcat-1.0.xsd for more details.

If you are using the generic namespace, then your <cluster> tag will go 
inside the <container-config> tags.