Home > Documentation > Configuring and administering > Configuring and administering the Apache Geronimo Server > Clustering and farming > WADI Clustering |
Staring from Geronimo version 2.2, Web applications and Stateful SessionBeans can be clustered by WADI.
Install the following two configurations, shipped out-of-the-box with JEE5 assemblies, to support the clustering:
These configurations are automatically started when clustered applications are started. Hence, you should not start them explicitly.
Wadi can be configured to use unicast instead of multicast. To accomplish this configuration, multiple additions need to be added to the wadi-cluster module configuraton in config.xml
.
To successfully use a unicast configuraton, use the disableMCastService
attribute to disable the multicast broadcast service.
You can specify the receiver port that the DispatcherHolder
will listen on for session updates. If no port is specified, then the first available port starting at port 4000 will be chosen automatically.
For a static configuration, you need to define a list of static members. Each static member will have its own gbean configuration in config.xml
in the wadi-cluster module. The DefaultDispatchHolder
takes a reference to the first static member in the list.
You need to define each static member in the configuration in config.xml
. A sample configuration is as follows:
Deployment descriptors and deployment plans must be updated as follows:
web.xml
: the Web application must be marked as distributable. In other words, the optional "distributable" element must be defined:
If you are using a Tomcat assembly of Geronimo distribution, replace <clustering-wadi/>
with <tomcat-clustering-wadi/>
element in the deployment plan.
Install the following two configurations, shipped out-of-the-box with JEE5 assemblies, to support the clustering:
Tomcat configurations mirror Jetty's except that jetty6-X artifact IDs should be replaced by tomcat6-X.
Geronimo uses the OpenEJB container for providing EJB services. And Geronimo now has some basic support for SFSB clustering such as state replication between cluster members. Basically the server cluster members maintain membership information using multicast heartbeats and the ejb client maintains a list of servers to change target server based on availability. Each multicast packet contains a single URI that advertises a service, its group, and its location in the form of "cluster1:ejb:ejbd://thehost:4201".
The Geronimo-specific deployment plan for an EJB application, which is usually packaged as an EJB JAR file, is called "openejb-jar.xml". The openejb-jar.xml deployment plan is used in conjunction with the ejb-jar.xml Java EE deployment plan to deploy enterprise applications to the Geronimo application server.
To enable WADI clustering for SFSB, add openejb-clustering-wadi into the deployment plan as follows:
Install the following two configurations, shipped out-of-the-box with JEE5 assemblies, to support the clustering:
Bookmark this on Delicious Digg this | Privacy Policy - Copyright © 2003-2013, The Apache Software Foundation, Licensed under ASL 2.0. |