activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dcheckoway <>
Subject Preferred config for 2-node network of brokers?
Date Wed, 07 Sep 2011 09:28:50 GMT

I'd like your advice on setting up a simple 2-node network of brokers.  I
will have both consumers & producers each connected to one of the nodes
(randomly), and I'd like messages to flow to any consumer connected to
either node.

Assume "node1" and "node2" are the hostnames, and consumers and producers
will connect with:

I'm wondering which of the following configurations would be "preferred", if
there are any advantages or disadvantages to either:

=== Option 1: only one node specifically configured for network, i.e.

node1 is set up with no networkConnector, just a stock out-of-the-box,
otherwise standalone broker.
node2 is set up with:
      <networkConnector uri="static:(tcp://node1:61616)" duplex="true"/>

=== Option 2: both nodes aware of each other, i.e.

node1 is set up with:
      <networkConnector uri="static:(tcp://node2:61616)"/>
node2 is set up with:
      <networkConnector uri="static:(tcp://node1:61616)"/>

Any advice on this?  I want to make sure I understand the purpose of
"duplex".  If my suggestions above imply that I'm clueless about it, please
clue me in...  :-)


Dan Checkoway
dcheckoway gmail com
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message