Java Reference
In-Depth Information
</jvm>
<socket-binding-group ref="full-sockets"/>
</server-group>
</server-groups>
When using a full-ha profile, you need to configure HornetQ clustering security. You
can just disable it, or you need to additionally set a completely random user credential for
a JMS cluster. Find the profile settings in domain.xml , and add the following code to
the messaging subsystem:
<subsystem xmlns="urn:jboss:domain:messaging:2.0">
<hornetq-server>
<cluster-user>randomUser</cluster-user>
<cluster-password>randomPassword</cluster-password>
. . .
</hornetq-server>
</subsystem>
In addition to the domain.xml file, you need to check whether your domain controller's
host.xml file contains a reference to the local host, as shown in the following code
snippet:
<host name="master" xmlns="urn:jboss:domain:2.0">
...
<domain-controller>
<local/>
</domain-controller>
...
</host>
The local stanza means that this host controller will take the role of a domain controller.
For all other hosts controllers, you must specify the remote domain controller host and its
port (in this example, we added some variables as placeholders). We will cover them in
the next section.
Finally, you need to create a management user that will be used to establish a connection
between the slave nodes and the domain controller. For this purpose, launch the add-
user.sh/add-user.cmd script, which is located in the JBOSS_HOME/bin direct-
ory of your distribution:
Search WWH ::




Custom Search