File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Multiple queue listeners Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Multiple queue listeners" Watch "Multiple queue listeners" New topic

Multiple queue listeners

Dorothy Taylor
Ranch Hand

Joined: Nov 26, 2007
Posts: 104

I have a queue in ActiveMQ server. There are two listeners(on different machines), that are listening to the same queue. This is done for faster processing of the messages in the queue. Will ActiveMQ ensure that the same message is not received by both? Also will it ensure that both listeners do not seek the same message from the queue? Essentially there should not be any conflicts since both listeners are listening to the same queue? My doubt is if ActiveMQ will ensure that processing of messages from queue is smooth.

I agree. Here's the link:
subject: Multiple queue listeners
It's not a secret anymore!