Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMS Queue Messages for multiple consumers

 
praveen kasi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author
Saloon Keeper
Posts: 4010
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
praveen kasi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic