4 Replies Latest reply: Mar 11, 2014 9:00 AM by Ove Ranheim RSS

    Using standalone JTA 1.2 with Deltaspike JPA

    Ove Ranheim Novice

      Hi,

       

      I'm trying to use JTA-and-Hibernate (quickstart/jta-and-hibernate at master · jbosstm/quickstart · GitHub) with Apache DeltaSpike JTA (http://deltaspike.apache.org/jpa.html). I'm able to use transactions in my test-case using the TransactionManager, but I want to have DeltaSpike JPA working.

       

      Please se line 52 and 53: https://github.com/apache/deltaspike/blob/master/deltaspike/modules/jpa/impl/src/main/java/org/apache/deltaspike/jpa/impl/transaction/BeanManagedUserTransactionStrategy.java

       

      How can I bind TransactionSynchronizationRegistry to java:comp/TransactionSynchronizationRegistry? - mine is bound to java:/jboss/TransactionSynchronizationRegistry. Ref. line 70 in https://github.com/jbosstm/quickstart/blob/master/jta-and-hibernate/src/test/java/org/jboss/narayana/quickstarts/jta/TestCase.java.

       

      Cheers,

      Ove