Core bridge doesn't failover in HornetQ live-backup setup.
1. When configuring core queue/bridge in backup node, it fails to deploy
2. Remove core queue/bridge in backup node, boot live and backup nodes, then kill the live node, core bridge no longer works
Setup:
- JBoss EAP 5.1.2 with HornetQ
- HornetQ live-backup pair setup
- Core queue and bridge defined in hornetq-configuration.xml
1. Copied 'all' profile to 'node1' and 'node2'.
2. In node1/deploy/hornetq-configuration.xml, I configured shared store under ${user.home} dir, 2 queues and a bridge:
<queues>
<queue name="jms.queue.source">
<address>jms.queue.source</address>
</queue>
<queue name="jms.queue.target">
<address>jms.queue.target</address>
</queue>
</queues>
<bridges>
<bridge name="sourceTargetBridge">
<queue-name>jms.queue.source</queue-name>
<forwarding-address>jms.queue.target</forwarding-address>
<reconnect-attempts>-1</reconnect-attempts>
<static-connectors>
<connector-ref>in-vm</connector-ref>
</static-connectors>
</bridge>
</bridges>
3. Copied the hornetq-configuration.xml to node2 and just flipped <backup> to true.
I expected this works, but actually the backup node fails to deploy HornetQ:
> 2012-03-15 16:20:03,931 ERROR [org.hornetq.core.persistence.impl.journal.BatchingIDGenerator] (main) Failed to store id
> java.lang.IllegalStateException: Journal must be loaded first
It looks like backup server cannot deploy core queues and bridges.
Next I removed them from the backup server, the backup server was able to boot, but bridge still won't work if I killed node1. There is no BridgeImpl log in node2.