• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JMS Queue Messages for multiple consumers

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 4335
39
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic