Configure Data Replication
39.1.1.1.1. Configuration First, on the live server, in hornetq-configuration.xml, configure the live server with knowledge of its backup server. This is done by specifying a backup-connector-ref element. This element references a connector, also specified on the live server which specifies how to connect to the backup server. Here's a snippet from live server's hornetq-configuration.xml configured to connect to its backup server: org.hornetq.core.remoting.impl.netty.NettyConnectorFactory Secondly, on the backup server, we flag the server as a backup and make sure it has an acceptor that the live server can connect to. We also make sure the shared-store paramater is set to false: true false org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory For a backup server to function correctly it's also important that it has the same set of bridges, predefined queues, cluster connections, broadcast groups and discovery groups as defined on the live node. The easiest way to ensure this is to copy the entire server side configuration from live to backup and just make the changes as specified above.