3.3 Running JBoss in a cluster

Start the JBoss

Start the JBoss Application server by entering the following command.

./run.sh  -b <ipaddress> -c <server_profile>
Note: This will start JBoss instance using default cluster partition name, multicast address and multicast port.

Changing the Cluster Partition name

./run.sh -g <partition_name> -b <ipaddress> -c <server_profile>
Note: This command will use default multicast port and address. Every node of the cluster should have same value for the <partition name> and ensure that this value is unique for your JBoss cluster.

You can also mention partition name as a JVM argument as mentioned in 3.4 Modifying the JBoss run.conf file section.

Changing the Multicast address

Some users have a specific set of multicast addresses. To change the default Muticast address to the address of your choice enter the following command:
/run.sh -u <UDP group Ip address> -g <partition_name> -b <ipaddress> -c <server_profile>
Note: In the above command, <UDP group Ip address> represents UDP Multicast address.

Changing the MultiCast port

To change the Multicast port provide the following jvm argument in the run.conf file as mentioned in 3.4 Modifying the JBoss run.conf file s:
-Djboss.jgroups.udp.mcast_port=<port_number>
Note: By default, JBoss cluster is configured to use UDP based clustering. You can configure cluster to use TCP based clustering. Refer JBoss Clustering, for detailed information about configuring cluster to use TCP based clustering.

// Ethnio survey code removed