Reputation: 105
Wanted to know if there is any configuration that can be done in a activeMQ server that will re direct the messages from the DLQ to another queue on the same server.
For Example.
I have a queue "MAINQUEUE" which has a lot of messages having client ack activated, while processing if I get any exception the messages are transferred to the DLQ after some retries as expected. But I want the messages which are in the DLQ to be moved back into the MAINQUEUE after some time i.e. 5-10 min . Is there any way I can configure for it to be done automatically or I have to do it manually by writing a code.
Thanks FX
Upvotes: 3
Views: 2233
Reputation: 18356
There is no default mechanism for this, moving messages out of DLQ is generally considered a devops task as it should be determined why they are ending up there in the first place.
If you want to do something like that you could consider using an embedded Camel route, or use the broker interceptor pattern to create such a redirect to the scheduler.
Upvotes: 2