Re: Calling a camel route seems to commit an outside transaction

2014-11-07 Thread Christian Schneider
Hi Preben, yes. There is indeed an option. By default it is set to auto which seems to cause the commit. The problem is that we need the uncommitted data to do the query. Interestingly outside of OSGi in spring it seems to behave differently. There the data seems to go to the first level

Re: Calling a camel route seems to commit an outside transaction

2014-11-06 Thread Christian Schneider
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

Re: Calling a camel route seems to commit an outside transaction

2014-11-06 Thread Preben.Asmussen
I have seen that before in the old ejb days. The trick is to tell the persistent provider not to do commit before query. I would guess that Hibernate has a option to turn commit before query off. Preben -- View this message in context:

Calling a camel route seems to commit an outside transaction

2014-11-05 Thread Christian Schneider
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