3.4.2 Configuring interface for the slave nodes

To configure interface for the slave nodes:

  1. Login to a host machine to configure it as slave node.

  2. Delete the domain.xml and domain_<DBType>.xmlfrom files from <JBOSS_HOME>/domain/configuration/ directory.

  3. Open the host.xml file from <JBOSS_HOME>\domain\configuration\host.xml directory for editing.

  4. In the file, locate <host name="master" xmlns="urn:jboss:domain:1.5"> and change value of the host name attribute to slave .

    Note: If you have mutiple nodes in the cluster, then rename the slave nodesas slave1, slave2, slave 3, and so on.
  5. Add the following code between the <domain-controller> </domain-controller> tags.

    <remote host="<IP address of master node>" port="9999" security-realm="ManagementRealm"/>
    Note: In the <domain-controller> tag, mark the <local> tag as a comment.
  6. Locate the following code and

    • Replace the IP address in the management tag with IP address of slave node to enable slave nodes to connect with the master node.

    • Replace the IP address in the public tag with IP address of slave node to allows the application to be accessed by non-local HTTP.

    • Replace the IP address in the management tag with IP address of slave node to allows remote RMI access.

    <interfaces> 
        <interface name="management"> 
            <inet-address value="${jboss.bind.address.management:127.0.0.1}"/> 
        </interface> 
        <interface name="public"> 
           <inet-address value="${jboss.bind.address:127.0.0.1}"/> 
        </interface> 
        <interface name="unsecured">       
           <inet-address value="127.0.0.1" />    
        </interface> 
    </interfaces>

// Ethnio survey code removed