The broker prefers to send messages to a consumer that is local relative to
the producer. It does this to avoid the extra network hop incurred when
sending a message to a remote consumer. If you want the consumer on server1
to receive messages, give it a higher priority than the consumer on server2. 

Joe


qmative wrote:
> 
> activemq4.1.1
>    
>   a)
>   have 2 brokers which connect to each other fine on server1 and server2.
> all of them have this config
>       <transportConnectors>
>        <transportConnector name="openwire" uri="tcp://localhost:61616"
> discoveryUri="multicast://default"/>
>     </transportConnectors>
>   
> <networkConnectors>
>       <networkConnector uri="multicast://default"
>          name="bridge"
>          networkTTL="10"
>          decreaseNetworkConsumerPriority="false">
>       </networkConnector>
>     </networkConnectors>
>    
>   b)on both of these servers I have consumer which connect to brokers
> locally
>           <property name="url" value="tcp://localhost:61616" />
>    
>   c) I then run producer on server3  which connects to broker on server2
> and sends messages
>    
>   d) problem: only consumers on server2 receive messages. why consumers on
> server1 don't get messages even though they are connected to a network of
> brokers?
> 
>        
> ---------------------------------
> Got a little couch potato? 
> Check out fun summer activities for kids.
> 

-- 
View this message in context: 
http://www.nabble.com/brokers-in-network-don%27t-forward-messages-tf4504503s2354.html#a12900161
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to