We will conclude the clustering chapter discussing about the messaging subsystem which uses HornetQ as JMS provider.
HornetQ clusters allow groups of HornetQ servers to be grouped together in order to share the message processing load. Each active node in the cluster is an active HornetQ server that manages its own messages and handles its own connections.
In order to enable clustering, you need a few simple enhancements to your server configuration file. At first, the JMS server must be configured to be clustered, so you will need to set the
clustered element at the top of the messaging domain setting it to
true (this element defaults to
<subsystem xmlns="urn:jboss:domain:messaging:1.1"> <hornetq-server> ...