Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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: 4323
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.
 
Yes, of course, and I accept that blame. In fact, i covet that blame. As does this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic