activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: Failover configuration not working
Date Tue, 03 May 2011 21:25:24 GMT
On Tue, 2011-05-03 at 14:07 -0700, agujral wrote:
> Hi All,
>          I am using the following configuration in my activemq setup 
> failover:(tcp\://host1.com\:61616,tcp\://host2.com\:61616) for
> producers.Brokers are running on
> host1.com and host2.com . The problem is that producers always write to one
> broker and the other broker is not used. As per
> http://activemq.apache.org/failover-transport-reference.html  if I use
> failover transport the producers should write to both brokers randomly
> selecting one of them at a time.
> I am using activemq 5.4 version.

The failover transport doesn't randomly send to the different brokers,
it chooses from the list of broker, one broker to connect to, either
randomly or sequentially based on configuration.  If you have multiple
applications then you can configure the URI such that each will choose
one of the brokers at random like this:

failover:(tcp\://host1.com\:61616,tcp\://host2.com
\:61616)?randomize=true

Regards

-- 
Tim Bish
------------
FuseSource
Email: tim.bish@fusesource.com
Web: http://fusesource.com
Twitter: tabish121
Blog: http://timbish.blogspot.com/

Connect at CamelOne May 24-26

The Open Source Integration Conference


Mime
View raw message