GeeCON Prague 2014*
The moose likes EJB and other Java EE Technologies and the fly likes Multi threaded JMS AQ queue listener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Multi threaded JMS AQ queue listener" Watch "Multi threaded JMS AQ queue listener" New topic
Author

Multi threaded JMS AQ queue listener

Dave Barnes
Greenhorn

Joined: Jun 10, 2013
Posts: 5
Hi

i was just wondering, I am trying to set multiple listeners of a JMS AQ queue on a single server, do I need to create separate threads for each listener, or would something like the below ensure more than one message can be processed at a time:

For: 0 to NumListeners
Create listener queue
Create Queue Receiver
Create listener class
Set the listener class on the queue receiver
Start the queue listener

Thanks,
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Multi threaded JMS AQ queue listener