*
The moose likes EJB and other Java EE Technologies and the fly likes How can I control dequeueing speed in jboss? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How can I control dequeueing speed in jboss?" Watch "How can I control dequeueing speed in jboss?" New topic
Author

How can I control dequeueing speed in jboss?

Luca Zitto
Greenhorn

Joined: Feb 08, 2010
Posts: 23
Hi guys,
I have an application that uses JMS. Items are put on a queue and read from the queue in the same application. Now I need to introduce a sort of controlled rate when reading msgs from the queue.
Basically I need either:
a) ensure that there is a given time between dequeueing an item and dequeueing the next one
OR
b) ensure that speed of dequeueing does not exceed a given rate (for instance one message per second)

Can anyone suggest how to achieve this? I have some ideas but they don't sound very good even to myself!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How can I control dequeueing speed in jboss?