I am designing a mechanism to handle a message when it is not received by the consumer.
I use ActiveMQ Artemis. I want to configure the broker in such a way that when messages fail to deliver several times they go to DLQ like in this documentation. After unsuccessful attempts, messages will be thrown into my own DLQ address, but here my question arises.
I want the message to be sent back in the initial queue after 5 minutes. Message redirection is not really a problem, it is mentioned in the documentation.
But how can I set the message to be sent with a 5 minute delay? I see that there is such a possibility in this documentation, but it is supported from the application level and I would like to set it from broker.xml.