You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by mwojterski <mw...@gmail.com> on 2013/11/25 11:06:13 UTC
Re: Splitting within transactions
Hi,
I have a similar issue and shareUnitOfWork did not help. I have a route:
<route id="Create">
<from uri="direct:create"/>
<onException>
<exception>java.lang.Exception</exception>
<rollback markRollbackOnlyLast="true"/>
</onException>
<transacted ref="TX_REQ_NEW"/>
<split strategyRef="batch-collector" stopOnException="true"
shareUnitOfWork="true">
<simple>${body.entity}</simple>
<to uri="db:entity.RootEntity"/>
<bean ref="create/operation"/>
<to uri="direct:notify"/>
</split>
<bean ref="create/response"/>
</route>
I want this route to start new inner (autonomous) transaction and process
all entities in it.
I tried debugging and what i see is that exchange copied in multicast
processing has indeed UnitOfWork with parent uow set, but only parent has
transactedBy and when my (child) uow is checked in TransactionErrorHandler,
method isTransactedBy returns false and new transaction is opened : (
Please help..
--
View this message in context: http://camel.465427.n5.nabble.com/Splitting-within-transactions-tp5719539p5743789.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Splitting within transactions
Posted by "fabrizio.spataro" <fa...@bizmate.it>.
Hello. I have a similar problem.
How to resolve it?
--
View this message in context: http://camel.465427.n5.nabble.com/Splitting-within-transactions-tp5719539p5774114.html
Sent from the Camel - Users mailing list archive at Nabble.com.