Join a server to a server group

  1. Modify the group in the server's host.xml file.

    In the server's JBOSS_HOME/domain/host.xml file, look for the <servers> tag. Change value of the group attribute to the server group which the server should belong to.
  2. Modify the <domain-controller>

    By default, the domain controller is assumed to be localhost, signified by the <local/> tag. If your server group is hosted by a domain on a different server, remove the <local/> tag, and replace it with a <remote/> tag which refers either the host and port or the JNDI location of your domain controller.
    Example 1. Example <remote/> tags
    <!-- A host and port -->
    <remote host="192.168.100.1" port="9999"/>
    
    <!-- A JNDI location -->
    <remote location="http://somehost.example.com/domain-controller"
               callback-location="http://dakldjskal"
               outbound-interface="public"
               callback-outbound-interface="public"/>
    

  3. Restart the server.

    When you restart the server, it joins the new server group.
Result: Your server belongs to the new server-group.
Your server is now part of the new server-group and inherits its configuration. The domain controller and your local host log reflect the new configuration.