I am trying to create an ActiveMQ Network which will be consisted of 2 Brokers. I have done then configuration as described in the related guide (http://activemq.apache.org/networks-of-brokers.html)
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://activemq.org/config/1.0">
<broker brokerName="receiver" persistent="false" useJmx="false">
<networkConnectors>
<networkConnector uri="static:(tcp://host2:61616)"/>
</networkConnectors>
<persistenceAdapter>
<memoryPersistenceAdapter/>
</persistenceAdapter>
<transportConnectors>
<transportConnector uri="tcp://host1:61616"/>
</transportConnectors>
</broker>
</beans>
In the XML configuration above I am assuming that one of the network brokers is running in host1 and the other in host2. The broker running at host2 will have the opposite values. The JMS fails to start and it does not produce any exceptions in the log files, the only message that appears is
INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@3df78040: startup date [Tue Nov 22 20:54:53 CET 2011]; root of context hierarchy | org.apache.activemq.xbean.XBeanBrokerFactory$1 | main
Did anyone ever managed to setup a network of two or more ActiveMQ brokers?