RedeliverErrorHandler - Only invoke the shouldRedeliver method if its a potential redelivery being executed -----------------------------------------------------------------------------------------------------------
Key: CAMEL-4106 URL: https://issues.apache.org/jira/browse/CAMEL-4106 Project: Camel Issue Type: Improvement Components: camel-core Reporter: Claus Ibsen Assignee: Claus Ibsen Priority: Minor Fix For: 2.8.0 When routing the redelivery error handler takes place, and for non error situations the {{shouldRedeliver}} method is executed, returning {{false}} so the routing can continue. However we ought only to invoke this operation if its a potential redelivery being executed. This is more logical. See nabble http://camel.465427.n5.nabble.com/Redelivery-is-not-disabled-when-maximumRedeliveries-is-set-to-0-tp4488147p4488147.html -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira