Seems our analysis was wrong. Camel is not involved in the problem after all.

It seems to be a problem with hibnernate doing a commit before a criteria based lookup.

Christian


On 05.11.2014 16:23, Christian Schneider wrote:
I have an application running in OSGi that uses aries blueprint and aries jpa.

My class A is marked as transactional in blueprint and uses an XA transaction.
Inside such a transactional method from class A I
- first create a persistent entity in the DB
- then call a camel route using producer.requestBodyAndHeaders
- then I do some other changes on the entity

After the method I expect aries to commit the transaction.

The problem is that camel seems to already commit the transaction at the end of the route processing. I have not done any special transactional settings on the camel route.

Any idea why this happens and how I could avoid it?

Christian



--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com

Reply via email to