Hi
I second Christian.
To get in details, you can do:
Broker1 (LB):
<transportConnectors>
<transportConnector name="tcp" uri="tcp://broker1:61616"/>
</transportConnectors>
<networkConnectors>
<networkConnector uri="static:tcp:broker2:61616"/>
<networkConnector uri="static:tcp:broker3:61616"/>
</networkConnectors>
Broker2
<transportConnectors>
<transportConnector name="tcp" uri="tcp://broker2:61616"/>
</transportConnectors>
Broker3
<transportConnectors>
<transportConnector name="tcp" uri="tcp://broker3:61616"/>
</transportConnectors>
The client will produce on Broker1. If you have 10 messages on broker1,
those messages will be "forwarded" with 5 on broker2 and 5 on broker3.
Regards
JB
On 06/04/2013 04:41 PM, Christian Posta wrote:
Yes, use network of brokers with dynamic failover which achieves what
you're looking to do. See the "Broker side Options for failover" in the
wiki.
You could also take a look at Fuse Fabric which provides similar
functionality using zookeeper.
http://activemq.apache.org/networks-of-brokers.html
http://activemq.apache.org/failover-transport-reference.html
http://fuse.fusesource.org/fabric/
On Tue, Jun 4, 2013 at 7:12 AM, Mohammed Aslam <mohammed.lesiy...@ibsplc.com
wrote:
How to implement Loadbalancing in active MQ. I saw a few articles on
failover, network of brokers etc.
But that doesnt server my purpose.
By load balancer, I am looking for a solution like, for web application we
use apache proxy infront of multiple application server to balance the load
and client will get only one url of the proxy not the actual url of the
server.
In active MQ is ther anyway we can achieve same kind of loadbalanching so
that the client will connect to only one url, there may be multiple brokers
running but the client need not worry about those things.
--
View this message in context:
http://activemq.2283324.n4.nabble.com/How-to-achieve-ActiveMQ-Load-balanching-tp4667798.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com