We have a queue in ActiveMQ which is consumed by ~50 instances (sessions) of the same MDB.
The problem is that sometimes the queue receive a lot of messages and keep receiving lot of messages for various minutes. And the consumers is pulling the newer messages. So the older messages aren't pulled ultil the queue is almost empty. If the queue remain full (lot more messages than consumers) the older messages aren't consumed at all.
Is there a way to configure the ActiveMQ Artemis or MDB (Wildfly 10) to prefer pull the older messages from the queue first?