This directory hold the files necessary to modify a default JBoss
server into one that acts as a coordinated system of servers executing
on a single node. To create the set of servers you need to do the
following:

1. Create a new server by executing the following command. The environmental
variable "jboss.server.base.dir" points to the "server" directory of your
JBoss installation.

    cp -rp ${jboss.server.base.dir}/default \
    ${jboss.server.base.dir}/iceboss0

2. Create a directory for the shared cluster configuration files.

    mkdir ${jboss.server.base.dir}/iceboss-cluster

3. Copy the necessary files into this new directory.

    cp server-bindings.xml jndi.properties \
    ${jboss.server.base.dir}/iceboss-cluster

4. Copy from this directory the correct version of the jboss-service.xml file:

    cp jboss-<release>-service.xml \
    ${jboss.server.base.dir}/iceboss0/conf/jboss-service.xml

5. Create the second iceboss server cloning the new one you have built:

    'cp -rp iceboss0 iceboss1'

6. You should now be able to start both servers using the following
commands. ("jboss.home.dir" should point to the root directory og your JBoss
installation.)

    ${jboss.home.dir}/bin/run.sh -c iceboss0 &
    ${jboss.home.dir}/bin/run.sh -c iceboss1 &


The cluster JNDI server is the 'cluster' context of the iceboss0's
JNDI server.

To shutdown the two server you can use the following commands.

    ${jboss.home.dir}/bin/shutdown.sh -S
    ${jboss.home.dir}/bin/shutdown.sh -s localhost:1199 -S

You will find the JMX Consoles for each server at the following URLs.

    http://localhost:8080/jmx-console/index.jsp
    http://localhost:8180/jmx-console/index.jsp

To deploy more than two servers you will need to add more server
entries to the iceboss-service-bindings.xml file. It should be clear
what you need to do; copy one of the existing server elements, and
then change the port numbers so that there are no conflicts.

Simon Patton, June 2004
