You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Sean Folster <qm...@yahoo.com> on 2007/09/23 15:59:21 UTC
brokers in network don't forward messages
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.
Re: brokers in network don't forward messages
Posted by ttmdev <jo...@ttmsolutions.com>.
Sorry, I thought you were referring to 'queues' and not 'topics'.
Anyway, I did try your same pub/sub scenario and it all works fine for me; I
am using AMQ 4.1.1.
Joe
qmative wrote:
>
> thanks Joe for the reply, but I'd like to have all consumers that
> subscribed to the same topic and connected to the same network of brokers
> to receive all messages
>
> ttmdev <jo...@ttmsolutions.com> wrote:
> 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
>>
>> > discoveryUri="multicast://default"/>
>>
>>
>>
>> > name="bridge"
>> networkTTL="10"
>> decreaseNetworkConsumerPriority="false">
>>
>>
>>
>> b)on both of these servers I have consumer which connect to brokers
>> locally
>>
>
>
>>
>> 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.
>
>
>
>
> ---------------------------------
> Need a vacation? Get great deals to amazing places on Yahoo! Travel.
>
--
View this message in context: http://www.nabble.com/brokers-in-network-don%27t-forward-messages-tf4504503s2354.html#a12930280
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: brokers in network don't forward messages
Posted by Sean Folster <qm...@yahoo.com>.
thanks Joe for the reply, but I'd like to have all consumers that subscribed to the same topic and connected to the same network of brokers to receive all messages
ttmdev <jo...@ttmsolutions.com> wrote:
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
>
> > discoveryUri="multicast://default"/>
>
>
>
> > name="bridge"
> networkTTL="10"
> decreaseNetworkConsumerPriority="false">
>
>
>
> b)on both of these servers I have consumer which connect to brokers
> locally
>
>
> 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.
---------------------------------
Need a vacation? Get great deals to amazing places on Yahoo! Travel.
Re: brokers in network don't forward messages
Posted by ttmdev <jo...@ttmsolutions.com>.
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.
Re: brokers in network don't forward messages
Posted by Sean Folster <qm...@yahoo.com>.
messages don't go to all consumers if producer connects and sends messages to non-local(not localhost) broker in network
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?
---------------------------------
Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search.