Java Reference
In-Depth Information
</security-realms>
<management-interfaces>
<native-interface security-realm="ManagementRealm">
<socket interface="management"
port="${jboss.management.native.port:9999}" />
</native-interface>
</management-interfaces>
</management>
The final step is to configure the server nodes inside the
host.xml
file on both the
hosts. So, on the first host, we will configure
server-one
and
server-two
to add
them to
main-server-group
:
<servers>
<server name="server-one"
group="main-server-group"/>
<server name="server-two" group="main-server-group"
auto-start="false">
<socket-bindings port-offset="150"/>
</server>
</servers>
On the second host, we will configure
server-three
and
server-four
to add them
to
other-server-group
:
<servers>
<server name="server-three"
group="other-server-group"/>
<server name="server-four" group="other-server-group">
auto-start="false">
<socket-bindings port-offset="150"/>
</server>
</servers>
Please note that the
auto-start
flag value indicates that the server instances will not
be started automatically if the host controller is started.
For
server-two
and
server-four
, a
port-offset
value of
150
is configured to
avoid port conflicts. Okay, now we are done with our configuration. Assuming that the