I need to create a JMS consumer for which I can dinamically set the dequeue rate, something like N message per minute/second.
If I use the message-driven beans I can control the pool size, but I can't introduce a wait in a clean way, I can use sleep, but I don't know if it is a good idea.
Some AS admit a flow-control for JMS, but it's not JEE standard. Maybe I could use timers service, but in this hypothesis I can't have an ejb pool, anyway not a pool controlled by the AS.