私は apache-camel sql-batch 挿入を使用しています。SQLバッチ挿入の私のルートは次のとおりです。
<pipeline>
<transform>
<method ref="insertionMyBean" method="myBatchInsertion"></method>
</transform>
<choice>
<when>
<simple>${in.header.myCount} == ${properties:batch.mySize}</simple>
<to uri="sql:{{sql.subs.insertMyBatchStatement}}?batch=true"></to>
<log message="Inserted rows ${body}"></log>
</when>
</choice>
</pipeline>
このルートに autocommit false を設定したいです。誰でもこれで私を助けることができますか? 参考までに...バッチ挿入にmybatisを使用すると、mybatisフレームワークによって自動コミットがfalseに設定されます。プレーンSQLを使用するときにどうすれば同じことができますか?