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.

Reply via email to