I have a sample route which has MQ as producer endpoint and consumer as
logger endpoint.

If there is any problem in connecting to Producer endpoint. Camel
continuously retries to start the route.

How to avoid camel from retrying continuously?

Sample Route Configuration.

                <route id="sample">
                        <from uri="wmq:queue:sample?disableReplyTo=true" />
                        <onException>
                                <exception>java.lang.Exception</exception>
                                <redeliveryPolicy maximumRedeliveries="3"
                                        redeliveryDelay="5000" 
logRetryAttempted="true"
                                        retryAttemptedLogLevel="WARN" />
                                <handled>
                                        <constant>true</constant>
                                </handled>
                        </onException>

                        <to uri="log:Message"/>





--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-avoid-continuous-retry-attempts-to-stop-the-route-when-there-is-problem-with-Producer-Endpoint-tp5761975.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to