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>
在上文的XML组合中,我假定网络的经纪人中有一人在主办方1,另一人在主办方2。 代理商2 具有相反的价值。 JMS没有开始,也没有在记录档案中产生任何例外,而唯一的信息是显示的。
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
是否有任何人设法建立了两个或两个以上活跃的MQ经纪人网络?