开发者

Queue consumer clusters with ActiveMQ

开发者 https://www.devze.com 2023-02-10 09:38 出处:网络
How to configure cluster of Consumers in ActiveMQ? I created a simple embedded ActiveMQ applica开发者_开发技巧tion with two consumers of one Queue, consumers are working in separate threads. But when

How to configure cluster of Consumers in ActiveMQ? I created a simple embedded ActiveMQ applica开发者_开发技巧tion with two consumers of one Queue, consumers are working in separate threads. But when I send a message to the Queue, JMS delivers it to first consumer no matter how long it sleeps after receiving.


I think you're trying to explain that the first consumer is receiving all the messages. There is a FAQ entry for this type of problem available here:

http://activemq.apache.org/i-do-not-receive-messages-in-my-second-consumer.html

Bruce

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号