On Feb 18, 2008 1:08 PM, wha <[EMAIL PROTECTED]> wrote:
>
>
> How did you make it work ?
>
> I've been trying forever to make my brokerA talk to my BrokerB
>
> I have the following setup:
>
> Consumer -> BrokerB <--> BrokerA <- Producer
>
> My messages get stuck on Broker A, even though network connection between
> BrokerA and BrokerB has been established. I have set dynamicOnly to true and
> networkTTL to 2.
>
> Did you do anything else extra? My messages are not being forwarded from
> BrokerA to BrokerB :(

First make it work without using dynamicOnly, just in case there is a
bug with it. To do this, just set up a network connector in brokerA
that points to brokerB as well as a network connector in brokerB that
points to brokerA. Below is an example:

brokerA:
<networkConnectors>
      <networkConnector name="brokerA" networkTTL="2"
uri="static://(tcp://localhost:61612)"/>
</networkConnectors>

brokerB:
<networkConnectors>
      <networkConnector name="brokerB" networkTTL="2"
uri="static://(tcp://localhost:61611)"/>
</networkConnectors>

Then just start up the consumer on brokerA like so:

$ ant consumer -Durl=tcp://localhost:61611

And now start up the producer like so:

 ant producer -Durl=tcp://localhost:61612

The producer will send 10 messages and shut down and the consumer will
receive 10 messages and shut down.

Bruce
-- 
perl -e 'print unpack("u30","D0G)[EMAIL 
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/

Blog: http://bruceblog.org/

Reply via email to