I have implemented a JMS based application relying on JBoss EAP 6.3 HornetQ. I have several queues, but I need one of them to be "paused" by default (at server startup), unless I explicitly resume it.
If you are wondering why I need a paused queue, it's because it is a "resubmission" dead letter queue:
- When I'm unable to deliver a message, I queue it in the DLQ for future resubmission.
- Monitoring that queue, I notice that the resubmission queue is filling, so I inspect and fix the cause.
- Once fixed, I resume the resubmission queue: an MDB properly (with some logic) resubmits each message to the queue it came from.