Hi all.The error handler can use in java dsl like this:
onException(Throwable.class)
    .to("file://errors")
    .process(errorProcessor)
    .handled(true)
.end();

But in xml, I write this, it can't working:
<camel:onException>
    <camel:exception>java.lang.Throwable</camel:exception>
    <camel:to uri="file://errors" />
    <camel:process ref="errorProcessor" />
    <camel:handled>
        <camel:constant>true</camel:constant>
    </camel:handled>
</camel:onException>

What's the right useage?
Thanks.



--
View this message in context: 
http://camel.465427.n5.nabble.com/Why-the-handled-tag-can-t-use-in-xml-tp5732701.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to