You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by geenee1019 <ge...@gmail.com> on 2009/06/22 12:44:41 UTC

Load Balancing in Active MQ

Hi,

Could anyone let me know how to do configure load balancing in Active MQ....

My requirement in For example if a queue has received 5 messages means the
next 5 messages has to be routed to another queue and so on....

I was successfully able to achieve the failover scenario i.e ,if a queue
fails the message will be routed to other queue...Now I want to know about
load balancing.


Thanks....
-- 
View this message in context: http://www.nabble.com/Load-Balancing-in-Active-MQ-tp24145083p24145083.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Re: Load Balancing in Active MQ

Posted by Bruce Snyder <br...@gmail.com>.
On Mon, Jun 22, 2009 at 4:44 AM, geenee1019<ge...@gmail.com> wrote:
>
> Hi,
>
> Could anyone let me know how to do configure load balancing in Active MQ....
>
> My requirement in For example if a queue has received 5 messages means the
> next 5 messages has to be routed to another queue and so on....
>
> I was successfully able to achieve the failover scenario i.e ,if a queue
> fails the message will be routed to other queue...Now I want to know about
> load balancing.

What you're describing sounds like it would be controlled from the
client side. ActiveMQ doesn't determine on what queues messages are
sent. That is determined when a MessageProducer sends a message to a
queue as it must tell the Session to which destination a message is
being sent.

One thing you can do is use Apache Camel on the broker side to move
messages from one destination to another. And this can be configured
in the conf/activemq.xml configuration file. To see an example of
this, search the conf/activemq.xml file for camel.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

ActiveMQ in Action: http://bit.ly/2je6cQ
Blog: http://bruceblog.org/
Twitter: http://twitter.com/brucesnyder