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.


	
<distributable/>
create jboss-web.xml in WEB-INF directory of application with below contents
<?xml version="1.0" encoding="ISO-8859-1"?>
<jboss-web>
<replication-config>
<replication-granularity>ATTRIBUTE</replication-granularity>
<replication-trigger>SET_AND_NON_PRIMITIVE_GET</replication-trigger>
</replication-config>
</jboss-web>
 

Start the node1 and node2 by entering the following:

# cd $JBOSS_HOME


# $JBOSS_HOME/bin/run.sh -c node2 -b 10.10.10.2


 



Who Voted for this Article



YourWiz.com, is a website that will allow everyone to share their knowledge, tip or information through community micro blogging.