Hi

No this is correct. Camel only updates the message if the process was succesful.

There is a property stored on the exchange with the failed endpoint you can use.

See section _which endpoint failed_ at
http://camel.apache.org/dead-letter-channel.html



On Wed, Aug 20, 2014 at 7:00 PM, sandp <[email protected]> wrote:
> I'm trying to insert the failed CamelMyBatisStatementName to DB and noticed
> that camel is not updating the header  CamelMyBatisStatementName with the
> statement name that failed.
>
> *Here's the scenario:*
> from("some endpoint")
>         .to("mybatis:mapper.statement1?statementType=Update")
>         .to("mybatis:mapper.statement2?statementType=Update")
>
> .to("mybatis:mapper.statement3?statementType=InsertList&executorType=batch")
> end();
>
> statement2  failed in the route above, but when I looked at the header
> CamelMyBatisStatementName, it still had the previously executed *statement1
> * name.
>
> I believe camel should update it with *statement2 * that actually failed as
> per the *Message Headers*  in  Camel MyBatis
> <http://camel.apache.org/mybatis.html>
>
>
>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-Mybatis-2-13-1-CamelMyBatisStatementName-not-updated-for-failed-statement-tp5755450.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to