Home > Index > Test Drive Geronimo EJB Clustering |
Geronimo now has some basic support for SFSB clustering. If you would like to give it a try then here are some instructions.
I have done some testing with an OpenEJB example, namely CounterImpl, that you can co from https://svn.apache.org/repos/asf/openejb/trunk/openejb3/examples/simple-stateful. Note that you need to update CounterImpl so that it implements Serializable.
And here is the geronimo-opejnejb.xml plan I am using:
mkdir NODE2
cp -r var NODE2
perl -pi -e 's/PortOffset=0/PortOffset=1/' NODE2/var/config/config-substitutions.properties
perl -pi -e 's/clusterNodeName=NODE/clusterNodeName=NODE2/' NODE2/var/config/config-substitutions.properties
geronimo/start-server -G server.name=NODE2 -b
If you are also using CounterImpl, then you can use this snippet:
To actually trial the clustering:
This is a test demonstrating replication.
Bookmark this on Delicious Digg this | Privacy Policy - Copyright © 2003-2011, The Apache Software Foundation, Licensed under ASL 2.0. |