camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From CraigLaSalle <craig.lasa...@gmail.com>
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. 

        <onException>
           
<exception>org.apache.camel.component.http.HttpOperationFailedException</exception>
            <redeliveryPolicy redeliveryDelay="15000"
maximumRedelivers="480" />
            <handled>
                <constant>true</constant>
            </handled>
        </onException>

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? 

Thanks, 
-Craig LaSalle


--
View this message in context: http://camel.465427.n5.nabble.com/Stopping-long-redelivery-on-Camel-shutdown-tp5714773.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message