wood burning stoves*
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 Java 8 in Action this week in the Java 8 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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I control dequeueing speed in jboss?
 
Similar Threads
Access to another process' memory
Thread struck in execute queue
Is there a way to check how the mac is assigning/utilizing the processors?
Simultaneous Update of same record
Goal of MDB