Below are three broker configurations for this NoB MQ1---->MQ2---->MQ3
All three brokers are on separate machines. My JMS producer connects to MQ1 and sends messages to a queue called TEST.Q. My consumer connects to MQ3, subscribes to TEST.Q, and receives the messages from the producer on MQ1. Works fine. I am using a 5.2 SNAPSHOT; however, this same 3-broker configuration has worked for me with 5.1. The machines are a mix of Windoze and Linux. Hope this helps. Joe <beans> <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/> <broker brokerName="MQ1" xmlns="http://activemq.org/config/1.0"> <transportConnectors> <transportConnector name="openwire1" uri="tcp://localhost:61616" /> </transportConnectors> <networkConnectors> <networkConnector uri="static:(tcp://host2:61616)" dynamicOnly="true" networkTTL="2"/> </networkConnectors> </broker> </beans> <beans> <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/> <broker brokerName="MQ2" xmlns="http://activemq.org/config/1.0"> <transportConnectors> <transportConnector name="openwire2" uri="tcp://localhost:61616" /> </transportConnectors> <networkConnectors> <networkConnector uri="static://(tcp://host3:61616)" dynamicOnly="true" networkTTL="2"/> </networkConnectors> </broker> </beans> <beans> <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/> <broker brokerName="MQ3" xmlns="http://activemq.org/config/1.0"> <transportConnectors> <transportConnector name="openwire3" uri="tcp://localhost:61616" /> </transportConnectors> </broker> </beans> Templexp Tan wrote: > > Thanks your help, the guide is great, I am trying to figure out te > problems. > > On Wed, Jul 30, 2008 at 11:40 AM, Joe Fernandez < > [EMAIL PROTECTED]> wrote: > >> >> You'll need to set up forwarding bridges (networkConnectors) from MQ1 to >> MQ2 >> and from MQ2 to MQ3. Make sure to set networkTTL to 2. MQ2 and MQ3 will >> also >> need transportConnectors. See the following page. >> >> http://activemq.apache.org/networks-of-brokers.html >> >> You can also download a free ActiveMQ user guide from >> www.ttmsolutions.com >> >> Joe >> >> >> Templexp Tan wrote: >> > >> > Hello everyone, >> > >> > suppose I have 3 nodes. each node has the MQ broker that connects to >> the >> > next broker. >> > >> > MQ1 ----- > MQ2 ------> MQ3 >> > >> > >> > >> > I wanna produce some messages from MQ1 to MQ3. and MQ1 and MQ3 are >> > physically seperated. how can produce the message from MQ1 to MQ3 >> throught >> > MQ2? >> > >> > on the network , what's the name space of the MQ3? Is it inside the >> > activemq.xml? anything relate with the brokername? but what if the name >> > are >> > duplicated on the network, what's its unqinue identifier? >> > >> > I am the beginer of the AMQ, and very confuse on this point, anyone >> could >> > get me a hint on it. Thanks a lot. :) >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Where-is-the-ActiveMQ%27s-Destination--tp18724908p18725614.html >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/Where-is-the-ActiveMQ%27s-Destination--tp18724908p18733142.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.