activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From farshad <>
Subject Re: Question about Queue destinations in network of brokers
Date Tue, 06 Oct 2009 22:05:58 GMT

Hi Joe,

Thank you for your reply.  So, I set dynamicOnly to "true" and networkTTL to
4.  The sender code puts messages in the queue and the receiver code
connects and sometimes it gets all the messages and somtimes it gets some of
them.  I have to reconnect to get the rest of them.  Also, if I shut down
the broker that the messages were sent thru, no messages can be received. 
In my activemq.xml I have one broker definition and then copy the same
config file into the all broker machines.  Should each broker have its own
unique broker definition?  What is the use of staticallyIncludedQuues?

Here's my config file:

           <queue physicalName="Document.QUEUE" />

<networkConnector name="myHosts"

      <transportConnector name="openwire" uri="tcp://localhost:61616"

Thank you,

Joe Fernandez wrote:
> You should use the static and not failover connector to configure your
> network of brokers. Also make sure that you have the appropriate values
> assigned to the networkTTL and dynamicOnly parameters.  
> Joe
> farshad wrote:
>> I have a network of 4 brokers configuration with
>> failover://(tcp://host1:61616,tcp://host2:61616,...) defined.  My first
>> piece of java code connects to one of these hosts (randomly) and puts
>> some messages in a queue destination (e.g. Document.QUEUE).  A second
>> piece of java code connects to another one of these hosts and fails to
>> read the messages.  Is this expected behaviour?  If I connect to one host
>> and put messages in a queue and the host goes down what do I have to do
>> to receive my messages connecting to another host in the network?
>> Thank you in advance,
>> FarshadK

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message