activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Load balancing problem
Date Thu, 04 Dec 2008 13:36:26 GMT
2008/12/4 zunrise <denis@artkontrast.de>:
>
> Hi,
>
> I'm very new to JMS and ActiveMQ. I have following problem. First I have
> started 10 consumers of one queue. Then I send 20 messages to the queue. The
> processing time of a message is approximatly 5seconds. But each message is
> consumed by the first consumer. Only if I start consumers after the messages
> are send, the broker will dispatch the messages also to the new created
> consumers. What I want is that the other 9 consumers from the beginning
> consume messages, too. Is it possible and how do I have to configure my
> system?

Please see the FAQ entry...
http://activemq.apache.org/i-do-not-receive-messages-in-my-second-consumer.html

basically set prefetch to 1 or use 40,000 messages or more
-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://fusesource.com/

Mime
View raw message