aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes JMS Queue Messages for multiple consumers 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 "JMS Queue Messages for multiple consumers " Watch "JMS Queue Messages for multiple consumers " New topic
Author

JMS Queue Messages for multiple consumers

praveen kasi
Greenhorn

Joined: Jul 10, 2008
Posts: 3
I have encountered a problem. I have one jms queue and multiple slaves listening to that queue asynchronously. If there are more messages on that queue they are not picked up by all slaves but only concentrated with one or two slaves and other slaves are still idle. I have started all slaves at a time and later the messages are sent to queue. We are using weblogic 8.1 sp6 and the consumers are jms clients.

Does any one encountered this problem. If yes, appreciate a quick response for resolving this.
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3704
    
    5

"poppy crazy"

Please review the JavaRanch Naming Policy and update your name accordingly.

Second, Queues only have one listeners. If you want multiple listeners you should be using a Topic not a Queue.


My Blog: Down Home Country Coding with Scott Selikoff
praveen kasi
Greenhorn

Joined: Jul 10, 2008
Posts: 3
Thanks for naming suggesstion. I corrected my name.

Coming to my question. Multiple listeners I mean here is I am starting multiple jms client threads for reading the queue messages to parallel process my requests.

I will explain my problem in this scenario. I have published 10 messages to the queue and I started 3 jms clients. I see only one or two clients picking up the messages for processing while others are idle even though the messages are in queue.

Hope I am clear now.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMS Queue Messages for multiple consumers