camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From CraigLaSalle <>
Subject Stopping long redelivery on Camel shutdown
Date Wed, 20 Jun 2012 19:21:54 GMT
Hi Camel Experts - 

I have a route that uses the HTTP component to call a web service. If the
HTTP component returns
"org.apache.camel.component.http.HttpOperationFailedException", then the
<onException> definition specifies to attempt redeliveries. 

The RedeliveryPolicy specifies a redelivery delay of 15 seconds, a maximum
redeliveries of 480, for a total wait time of 2 hours. 

            <redeliveryPolicy redeliveryDelay="15000"
maximumRedelivers="480" />

The problem is on shutdown. The Camel shutdown flow will wait for any
inflight messages that are in the "redelivery loop" to complete, which of
course can be several hours. We want to be able to shutdown the component in
a much shorter time without the long wait, gracefully. 

QUESTION: Is there a way to terminate the redelivery of the messages when
Camel is shutdown? 

-Craig LaSalle

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message