Hi,

I have my error handler setup like

    <bean id="DLQHandler"
class="org.apache.camel.builder.DeadLetterChannelBuilder">
        <property name="deadLetterUri"
value="ejb:myear/DLQReceiver/local?method=onError"/>
            <property name="useOriginalMessage" value="true"/>      
            <property name="handled" value="false"/>
        <property name="redeliveryPolicy" ref="myRedeliveryPolicyConfig"/>
        </bean>

        <bean id="myRedeliveryPolicyConfig"
class="org.apache.camel.processor.RedeliveryPolicy">
                <property name="maximumRedeliveries" value="0"/>
        </bean> 

but this appears to be invalid due to the schema.
Indeed I found out that in DeadLetterChannel

    protected Predicate getDefaultHandledPredicate() {
        // DeadLetterChannel handles errors before sending to DLQ
        return
PredicateBuilder.toPredicate(ExpressionBuilder.constantExpression(true));
    }

But here(http://camel.apache.org/dead-letter-channel.html) it is said that
this has to be tweakable. Is there anything I'm confusing? If yes, how can I
propagate the error to the starting endpoint after having it processed with
DLQ?

Any help is highly appreciated.

Viktor.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Why-is-DeadLetterChannel-not-supporting-chaning-the-handled-property-tp4932322p4932322.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to