You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2012/10/29 06:13:12 UTC

[jira] [Commented] (CAMEL-5754) useOriginalMessage parameter of DefaultErrorHandler never be used

    [ https://issues.apache.org/jira/browse/CAMEL-5754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13485836#comment-13485836 ] 

Willem Jiang commented on CAMEL-5754:
-------------------------------------

It's not a bug, as the defaultErrorHandler will not use the original message by default, and it provides a way to let you set the option by using the DSL.
For the DeadLetterChannel, it needs to use the original message for store or processing.

Please drop an email to the user at camel.apache.org if you are not sure about the usage of API, so we can make things clear before filling a JIRA.
                
> useOriginalMessage parameter of DefaultErrorHandler never be used
> -----------------------------------------------------------------
>
>                 Key: CAMEL-5754
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5754
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.10.2
>         Environment: Camel 2.10.2 and old versions
>            Reporter: liugang
>            Assignee: Willem Jiang
>            Priority: Minor
>
> When declare a default error handle, the *useOriginalMessage* is configurable:
> {code}
> errorHandler(defaultErrorHandler().useOriginalMessage())
> {code}
> but is never be used, when creating *DefaultErrorHandler*, the passed parameter always false:
> {code}
>     public DefaultErrorHandler(CamelContext camelContext, Processor output, CamelLogger logger, Processor redeliveryProcessor,
>             RedeliveryPolicy redeliveryPolicy, ExceptionPolicyStrategy exceptionPolicyStrategy, Predicate retryWhile, ScheduledExecutorService executorService) {
>         super(camelContext, output, logger, redeliveryProcessor, redeliveryPolicy, null, null, false, retryWhile, executorService);
>         setExceptionPolicy(exceptionPolicyStrategy);
>     }
> {code}
> but it works when using Dead letter queue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira