How to Setup a Managed Domain in JBoss EAP

Domain Controller

1) Setup the domain controller in the <JBoss EAP Install Dir>/domain/configuration/host.xml file:

<domain-controller>
  <local />
</domain-controller>

2) Create an user for each host controller using the <JBoss EAP Install Dir>/bin/add-user.sh script and save the secret.

3) Start JBoss EAP in domain mode.

Host Controllers

1) Add the domain controller to the <JBoss EAP Install Dir>/domain/configuration/host.xml file:

<domain-controller>
  <remote host="${jboss.domain.master.address:host}" port="${jboss.domain.master.port:9999}" security-realm="ManagementRealm"/>
</domain-controller>

2) Configure the authentication in the domain controller in the <JBoss EAP Install Dir>/domain/configuration/host.xml file:

<host name="host" xmlns="urn:jboss:domain:1.3"> <!-- the user in the domain controller -->
  <management>
    <security-realms>
      <security-realm name="ManagementRealm">
        <server-identities>
          <secret value="secret" /> <!-- the saved secret -->
        </server-identities>
        ...
      </security-realm>
      ...
    </security-realms>
  </management>
  ...
</host>

3) Remove the HTTP management interface in the <JBoss EAP Install Dir>/domain/configuration/host.xml file:

<management-interfaces>
  <native-interface security-realm="ManagementRealm">
    <socket interface="management" port="${jboss.management.native.port:9999}"/>
  </native-interface>
</management-interfaces>

4) Start JBoss EAP in domain mode.

You can find more details in the Administration and Configuration Guide.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s