Yah, you could just pick a broker (broker1) and use that URL. But that
won't give you load balancing up front. It would if brokers were
added/removed to the cluster as clients would be rebalanced. I guess in
your specific case you'd  have to use all three urls in the failover
transport to achieve balancing up front, and then one would be randomly
picked.

The solution here might be use a vip load balancer.

If using fuse fabric, you would use the fabric transport, and that would
also hide the location of all the brokers:

new ActiveMQConnectionFactory("discovery:(fabric:<group_name>)");




On Tue, Jun 4, 2013 at 8:15 AM, Mohammed Aslam <mohammed.lesiy...@ibsplc.com
> wrote:

> Thanks for the reply. But could you tell me one thing, if I have network of
> brokers, say broker1, broker2, broker3, which one the the client will
> connect to?
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/How-to-achieve-ActiveMQ-Load-balanching-tp4667798p4667810.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Reply via email to