简体   繁体   中英

Start JBoss EAP server with paused queue

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:

  1. When I'm unable to deliver a message, I queue it in the DLQ for future resubmission.
  2. Monitoring that queue, I notice that the resubmission queue is filling, so I inspect and fix the cause.
  3. Once fixed, I resume the resubmission queue: an MDB properly (with some logic) resubmits each message to the queue it came from.

I don't believe HornetQ has the ability you're looking for. However, this ability was added to ActiveMQ Artemis (the project to which HornetQ was donated) in version 1.5 via ARTEMIS-753 . You'd need to migrate to a later version of JBoss EAP which uses Artemis 1.5 (or later) as the JMS implementation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM