Also use PROPAGATION_REQUIRED for your second route.

Best,
Christian

Sent from a mobile device
Am 03.10.2012 16:35 schrieb "lolo" <laurent.gaert...@lchclearnet.com>:

> I'm having two routes, first route defined with
> transacted("PROPAGATION_REQUIRED"), second route defined with
> transacted("PROPAGATION_REQUIRES_NEW").
> Route 1 is calling route 2.
> I'm persisting entities in route 1 that I would like to update in route 2.
> At the moment I'm getting the following exception in route 2:
> javax.persistence.EntityNotFoundException when I try to update the entity
> created in route 1.
> This is because they are part of two different transactions.
> Is there any way to achieve that?
> How can I persist the entities in route 1 so that they are visible in route
> 2 eventhough they are different transactions?
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Two-routes-two-transactions-tp5720484.html
> Sent from the Camel Development mailing list archive at Nabble.com.
>

Reply via email to