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.