activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gaurav Hariani <g.activ...@blackspark.com>
Subject Re: Confusion with simple network of brokers test
Date Mon, 16 Apr 2007 22:37:22 GMT
BrokerA also needs a transport connector defined pointing to the TCP 
TransportConnector defined in BrokerB




agrabil wrote:
> Sorry, forgot to mention that I'm using ActiveMQ 4.1
>
> Greg
>
>
> agrabil wrote:
>   
>> I am testing what I believe to be a very simple network of brokers
>> scenario that I can't seem to figure out.  I have two brokers:
>>
>> Broker A has a tcp transport connector for itself, but no network
>> connectors defined.
>> Broker B has a tcp transport connector for itself, and a network connector
>> to the tcp port at broker A's IP address
>>
>> After starting both brokers, I see the TCP connection established
>> successfully between the two.
>>
>> If I use the ProducerTool to publish messages to MyQueue on Broker A, and
>> I have run the ConsumerTool on Broker B, I don't receive any messages from
>> MyQueue.  Instead, I have to connect the consumer directly to Broker A to
>> consume these messages.
>>
>> However, if I reverse the test, and I use the ProducerTool to publish
>> messages to MyQueue on Broker B, and I run the ConsumerTool on Broker A, I
>> *do* receive the messages.
>>
>> It seems once the two brokers are connected, I should be able to do this
>> sort of thing in either direction.  Am I missing something?  Or, can
>> someone explain why messages only seem to flow to other brokers in the
>> direction that network connectors are established?
>>
>> Thanks,
>> Greg
>>     

Mime
View raw message