On Mon, Oct 24, 2011 at 2:14 PM, vhalitsyn <[email protected]> wrote: > 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? >
An error handler is supposed to *handle* errors, and thus we removed the possibility to disable that. It caused more confusion in the community, as well on the Camel team to ensure the quality of the code, to ensure all the possible ways people can configure and use error handling in Camel works. You can use onException and have it configure handled to false if you want. > 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. > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
