You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Ha...@gpj.com on 2010/07/09 17:46:55 UTC

Broker clustering with Mutlicast not working

I have two brokers, both embedded inside JBoss running on two different 
machines within the same network. I  have the following network and 
transport settings for the brokers:

Broker1:
       <networkConnectors>
          <networkConnector uri="multicast://default"/>
        </networkConnectors>

<transportConnector uri="tcp://localhost:0" 
discoveryUri="multicast://default"/>


Broker2:
        <networkConnectors>
          <networkConnector uri="multicast://default"/>
        </networkConnectors>

<transportConnector uri="tcp://localhost:0" 
discoveryUri="multicast://default"/>


When i run the two brokers with these settings i see the network bridge 
error. But running two brokers with the same settings on my local machine 
runs fine.

Related question is that if i have a producer and consumer with the 
following connection property:
 <property name="brokerURL" 
value="discovery:(multicast://default)?initialReconnectDelay=100"/> 

provided the two brokers are connected, does it mean that when i send the 
message to the Queue running on one broker it would be copied to the other 
broker too? And does
it mean that it would be consumed twice?


Thanks!
Hammad 

Re: Broker clustering with Mutlicast not working

Posted by Gary Tully <ga...@gmail.com>.
Can u use the 0.0.0.0 wildcard or ip address in the transport
connector instead of localhost.
A network is store nd forward, not replication, so a message will only
be on one of the brokers.

On Friday, July 9, 2010,  <Ha...@gpj.com> wrote:
> I have two brokers, both embedded inside JBoss running on two different
> machines within the same network. I  have the following network and
> transport settings for the brokers:
>
> Broker1:
>        <networkConnectors>
>           <networkConnector uri="multicast://default"/>
>         </networkConnectors>
>
> <transportConnector uri="tcp://localhost:0"
> discoveryUri="multicast://default"/>
>
>
> Broker2:
>         <networkConnectors>
>           <networkConnector uri="multicast://default"/>
>         </networkConnectors>
>
> <transportConnector uri="tcp://localhost:0"
> discoveryUri="multicast://default"/>
>
>
> When i run the two brokers with these settings i see the network bridge
> error. But running two brokers with the same settings on my local machine
> runs fine.
>
> Related question is that if i have a producer and consumer with the
> following connection property:
>  <property name="brokerURL"
> value="discovery:(multicast://default)?initialReconnectDelay=100"/>
>
> provided the two brokers are connected, does it mean that when i send the
> message to the Queue running on one broker it would be copied to the other
> broker too? And does
> it mean that it would be consumed twice?
>
>
> Thanks!
> Hammad
>

-- 
http://blog.garytully.com

Open Source Integration
http://fusesource.com