The version 3.0.0 of the ActiveMQ JMS extension contains a throttle feature, that allows serial consumption of messages, added to allow reasonable HW usage when big numbers of messages are waiting in the queue.
The listener contains properties for EventMaxCount, CurrentEventCount and BufferCheckInterval.
As part of raising an event, the thread will sleep whenever the CurrentEventCount is bigger than the EventMaxCount. The event will also increment the CurrentEventCount if it raises a new event.
It is the user responsability to decrease the CurrentEventCount, to allow new events being raised.
WARNING: the attached documentation was made for version 2.0.2. and it does not contain an explanation for the above method. It is useful for all the other generic setup and usage needs.