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 22:34:30 GMT
On Tue, 2011-05-03 at 15:25 -0700, agujral wrote:
> Hi There,
>             Thanks for your reply.I want to accomplish the following I have
> two brokers I want my producer 
> to write use both the brokers equally.For example say there are two brokers
> A and B 
> a)Say my producer has data to write to and it writes to broker A.
> b)Now again the producer has data now producer should write to broker B and
> broker A.
> 
> I want to accomplish this so that client makes equal write requests to both
> the brokers is there a way I can accomplish this.
> 
> Thanks a lot,
> Anurag
> 

For a single producer there isn't a transport that will load balance
across brokers, the fanout transport would allows your producer to send
to both brokers at the same time.  

You might want to look into using Camel if load balancing is what you
want, Camel has a load balancer component you can use for this, see:

http://camel.apache.org/load-balancer.html

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