You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by LiXiao2007 <Li...@gmail.com> on 2008/06/16 22:50:44 UTC
How to configure network brokers on different subnet
I setup two brokers on different subnets and tried to connect them using
networkConnector. It did not work. Could someone tell me how to configure
it?
Thanks!
Here are my configurations.
Broker A.
<transportConnectors>
<transportConnector name="openwire" uri="tcp://host1:portnumber"
discoveryUri="multicast://mygroupid"/>
</transportConnectors>
<networkConnectors>
<networkConnector uri="multicast://mygroupid"/>
</networkConnectors>
Broker B.
<transportConnectors>
<transportConnector name="openwire" uri="tcp://host2:portnumber"
discoveryUri="multicast://mygroupid"/>
</transportConnectors>
<networkConnectors>
<networkConnector uri="multicast://mygroupid"/>
</networkConnectors>
Here host1 and host2 are on different subnets.
--
View this message in context: http://www.nabble.com/How-to-configure-network-brokers-on-different-subnet-tp17873028p17873028.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: How to configure network brokers on different subnet
Posted by ttmdev <jo...@ttmsolutions.com>.
Using multicast across subnets gets a bit involved. This thread may help.
http://www.nabble.com/broker-discovery-client-help-to4474136.html#a4515535
If multicast is not a requirement, I would recommend using unicast tcp
transports to connect the two brokers.
Joe
LiXiao2007 wrote:
>
> I setup two brokers on different subnets and tried to connect them using
> networkConnector. It did not work. Could someone tell me how to configure
> it?
> Thanks!
>
> Here are my configurations.
>
> Broker A.
> <transportConnectors>
> <transportConnector name="openwire" uri="tcp://host1:portnumber"
> discoveryUri="multicast://mygroupid"/>
> </transportConnectors>
>
> <networkConnectors>
> <networkConnector uri="multicast://mygroupid"/>
> </networkConnectors>
>
> Broker B.
>
> <transportConnectors>
> <transportConnector name="openwire" uri="tcp://host2:portnumber"
> discoveryUri="multicast://mygroupid"/>
> </transportConnectors>
>
> <networkConnectors>
> <networkConnector uri="multicast://mygroupid"/>
> </networkConnectors>
>
> Here host1 and host2 are on different subnets.
>
--
View this message in context: http://www.nabble.com/How-to-configure-network-brokers-on-different-subnet-tp17873028p17877349.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.