Clustering HornetQ using message replication

In this recipe, we will learn how to configure a cluster with a live and a backup HornetQ server.

HornetQ cluster environment can be achieved by using a shared store (live and backup servers share the same and the entire data directory) as per the previous recipe, or via message replication which happens at the network layer—message replication mode can be achieved using the following setting:

<shared-store>false</shared-store>

Our final configuration should provide the following architecture:

Clustering HornetQ using message replication

Message replication configuration

Getting ready

To get started, let's first create an adhoc folder to run our WildFly. ...

Get WildFly Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.