camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "liugang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-5754) useOriginalMessage parameter of DefaultErrorHandler never be used
Date Mon, 29 Oct 2012 04:55:11 GMT
liugang created CAMEL-5754:
------------------------------

             Summary: 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
            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

Mime
View raw message