Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Call a route on Delivery failure

$
0
0
I have configured a RedeiveryPolicy on the error handler. Is there a way I
can call the WireTap processor once all delivery attempts have been made
the message is about to be sent to the DLC?

from("vm:sentToDestination")
.errorHandler(deadLetterChannel("{{dlc.queue}}")
.retriesExhaustedLogLevel(LoggingLevel.DEBUG)
.logRetryStackTrace(false).asyncDelayedRedelivery()
.maximumRedeliveries(retryMaxCount)
.redeliveryDelay(retryDelay))

.to("http://someURL")

Viewing all articles
Browse latest Browse all 5648

Trending Articles