activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agrabil <greg.ra...@ins.com>
Subject Re: Confusion with simple network of brokers test
Date Tue, 17 Apr 2007 13:26:12 GMT

Yes, I understand that configuration works.  I guess my question is really
more of why?  Once I've connected the two brokers, messages should flow in
either direction.  Having to define the network connector on both sides
makes it difficult to add more brokers to mix.  When adding a new broker, it
is fine for it to need to know about another broker to join with, but it is
a maintenance headache for the existing broker(s) to need to be configured
with a network connector to the newly added broker.


Gaurav Hariani wrote:
> 
> Correction - I meant:
> BrokerA also needs a network connector defined pointing to the TCP 
> TransportConnector defined in BrokerB
> 
> Gaurav Hariani wrote:
>> 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
>>>>     
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Confusion-with-simple-network-of-brokers-test-tf3586565s2354.html#a10035151
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message