Enable Delivery Count Persistence
As this behavior breaks strict JMS semantics, HornetQ allows to persist delivery count before message delivery but disabled it by default for performance implications. To enable it, set persist-delivery-count-before-delivery to true in hornetq-configuration.xml: true