Christian Schneider created ARIES-1278:
------------------------------------------

             Summary: jpa persist visibble outside its transaction
                 Key: ARIES-1278
                 URL: https://issues.apache.org/jira/browse/ARIES-1278
             Project: Aries
          Issue Type: Bug
            Reporter: Christian Schneider
            Priority: Critical


I have created a small example that shows the problem:
https://github.com/cschneider/Karaf-Tutorial/tree/master/tasklist-cdi

The project uses hibernate 4.3, aries jpa and derby. 

In persistence I work with container managed persistence provided by aries jpa.
In persistence-emf I directly use the EntiryManagerFactory.

In both cases I open a JTA transaction, then persist an entity. After a sleep I 
commit the transaction.

In a separate thread I look for the number of entities. I would expect this 
number to be 0 until the transaction is committed. Unfortunately the persist is 
already shown while the transaction is still open.

As it also happens with pure EMF the problem is maybe not in aries jpa directly 
as it is only quite thin then. Still I have no clue what might go wrong.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to