• 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Bear Bibeault
  • paul wheaton
Saloon Keepers:
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Mikalai Zaikin
  • Piet Souris
Bartenders:

Setting JBoss JMS Queue size

 
Ranch Hand
Posts: 299
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I have a JMS queue setup on JBoss and it works fine. I'm trying to figure out how to set the number of messages on the queue that get processed at a time. I heard/read somewhere that the default was 5 or 10, but I need to change this. I have googled and can't find the answer to this anywhere and I know you can set this. I don't wnat to set the number of messages that can be on the queue at once, but rather, the number of messages that get processed at a time.

Thanks in advance,
brian
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Brian,
Not sure if you still need an answer to this, but I will post a solution in case anybody else is looking.

What you need to do is set the pool size of the MDB to the desired number of consumers.

For EJB 3 on Jboss 5.1 to set it to 3 consumers. This can also be done in the XML files but I forget how. A quick google search will answer that for you.



 
When evil is afoot and you don't have any arms you gotta be hip and do the legwork, but always kick some ... tiny ad:
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
reply
    Bookmark Topic Watch Topic
  • New Topic