I can put the messages in dead letter queue if message re-delivery attempts fail.
How do I initiate re-delivery of archived messages in Dead Letter queue?
Does Camel provide any solution for that?
1
votes
2 Answers
2
votes
As @sully6768 suggested - you can use Camel component handling the Dead Message redelivery for you (like JMS).
However you can also define how many times the message will be attempted to send before Camel moves it to the Dead Letter Queue (BTW you can also define the time interval between the redelivery attempts).
errorHandler(deadLetterChannel("jms:queue:dead"))
.maximumRedeliveries(3).redeliveryDelay(5000));