camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (CAMEL-11080) OnExceptionDefinition validation ignores redeliveryPolicy field
Date Tue, 28 Mar 2017 08:29:41 GMT

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

Claus Ibsen reassigned CAMEL-11080:
-----------------------------------

    Assignee: Claus Ibsen

> 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
>   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)

Mime
View raw message