3.6 Running JBoss in a cluster

Start the JBoss

Start the JBoss Application server by entering the following command:

  • On master node:

    /domain.sh -b <ipaddress> -c <config_file_name>
  • On slave node:

    /domain.sh -b <ipaddress>
Note: The <config_file_name> file is the name of database specific configuration file located at [appserver_root]/domain/configuration directory.
Note: This will start JBoss instance using default cluster and multicast address.

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:

  • On master node:

    /domain.sh -b <ipaddress> -c <config_file_name> -u <UDP group Ip address>
  • On slave node:

    /domain.sh -b <ipaddress> -u <UDP group Ip address>
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 domain.conf file as mentioned in 3.3 Modifying the JBoss domain.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