My Consumer works when I send messages locally. The problem seems to be that BrokerA is not sending the messages to BrokerB.
wha wrote: > > Hi, > > I'm using the latest snapshot 5.1 > > I'm having some problems with a really simple setup. I want broker A to > send its messages to Broker B. > Broker A has a producer and Broker B has a consumer. > > Here's my config for broker A: > > <bean > class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/> > > <broker xmlns="http://activemq.org/config/1.0" brokerName="brokerA" > dataDirectory="${activemq.base}/data" useJmx="true" > advisorySupport="false"> > > > <!-- The transport connectors ActiveMQ will listen to --> > <transportConnectors> > > <transportConnector name="openwire" uri="tcp://localhost:61616" > discoveryUri="multicast://default"/> > <transportConnector name="ssl" uri="ssl://localhost:61617"/> > <transportConnector name="stomp" uri="stomp://localhost:61613"/> > <transportConnector name="xmpp" uri="xmpp://localhost:61222"/> > > </transportConnectors> > > <!-- The store and forward broker networks ActiveMQ will listen to --> > <networkConnectors> > > <networkConnector name="host1 and host2" > uri="static://(tcp://10.166.163.149:61616)" dynamicOnly="true" > networkTTL="2"/> > > </networkConnectors> > > > > Here's my config for Broker B: > > > > <bean > class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/> > > <broker xmlns="http://activemq.org/config/1.0" brokerName="brokerB" > dataDirectory="${activemq.base}/data" useJmx="true" > advisorySupport="false"> > > > <!-- The transport connectors ActiveMQ will listen to --> > <transportConnectors> > > <transportConnector name="openwire" uri="tcp://localhost:61616" > discoveryUri="multicast://default"/> > <transportConnector name="ssl" uri="ssl://localhost:61617"/> > <transportConnector name="stomp" uri="stomp://localhost:61613"/> > <transportConnector name="xmpp" uri="xmpp://localhost:61222"/> > > </transportConnectors> > > <!-- The store and forward broker networks ActiveMQ will listen to --> > <networkConnectors> > > <networkConnector name="host1 and host2" > uri="static://(tcp://10.166.163.108:61616)" dynamicOnly="true" > networkTTL="2"/> > > </networkConnectors> > > > Is there anything else I need to considerate ? > > Thanks. > -- View this message in context: http://www.nabble.com/Network-of-Brokers---Broker-A-talking-to-Broker-B-tp15510192s2354p15510200.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.