Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.16.5
-
Linux, Java 1.7
-
Moderate
Description
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?