Register | Login

Copy server/all to server/node1 by entering the following:

# cp $JBOSS_HOME/server/all $JBOSS_HOME/server/node1


To differentiate between the JBoss Server instances, each cluster node must have an individual name. Add the jvmRoute attribute, with the syntax jvmRoute="nodeX, in the file $JBOSS_HOME/deploy/jboss-web.deployer/server.xml by making the following change:

Locate the line which contains the following:

<Engine name=”jboss.web” defaultHost=”localhost”>,
Change it to the following:
<Engine name=”jboss.web” defaultHost=”localhost” jvmRoute=”node1”>


Change ServerPeerID

add server peer id in deploy/messaging/messaging-service.xml

increment the ServerPeerID.

Note: both the nodes should not have the same peer id.


Repeat Steps on the remaining JBoss server node systems. Replace node1 with the node2


Edit application web.xml file and add a tag file.

create jboss-web.xml in WEB-INF directory of application with below contents
<?xml version="1.0" encoding="ISO-8859-1"?>

Start the node1 and node2 by entering the following:


# $JBOSS_HOME/bin/ -c node2 -b


Who Voted for this Article, is a website that will allow everyone to share their knowledge, tip or information through community micro blogging.