[ 
https://issues.apache.org/jira/browse/CAMEL-11080?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-11080.
---------------------------------
    Resolution: Fixed

Thanks for reporting

> OnExceptionDefinition validation ignores redeliveryPolicy field
> ---------------------------------------------------------------
>
>                 Key: CAMEL-11080
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11080
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.16.5
>         Environment: Linux, Java 1.7
>            Reporter: Richard O'Sullivan
>            Assignee: Claus Ibsen
>            Priority: Minor
>              Labels: features
>             Fix For: 2.19.0
>
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> The OnExceptionDefinition provides DSL methods redeliveryPolicy(...) and 
> redeliveryPolicyRef(...) to configure a reusable RedeliveryPolicy instance. 
> However, the validateConfiguration() method does not include redeliveryPolicy 
> as one of the possible options. Thus, the following trows a 
> IllegalArgumentException:
> .onException(IOException.class)
>     .redeliveryPolicy(myRedeliveryPolicy)
> .end()
> Note: The getOrCreateRedeliveryPolicy() creates a new 
> RedeliveryPolicyDefinition() and should get its initial properties from 
> redeliveryPolicy, when the latter is set, methinks.
> Note: The getRedeliveryPolicy() and setRedeliveryPolicy(...) act on a 
> RedeliveryPolicyDefinition instead of a RedeliveryPolicy. Bug?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to