1 Reply Latest reply on Jul 27, 2014 8:36 AM by aardelean

    TransactionManager configuration for wildfly

    aardelean

      Hi,

       

      I am playing a little bit with wildfly, hibernate-ogm, infinispan. I have st up a short project at https://github.com/aardelean/points .

       

      My main problem is that if user @Transactional aspect, doesn't commit the transaction. When used arjuna TransactionManager.transactionManager() in a programatic way, it works fine.

       

      In debug I can see the Arjuna aspect when used with @Transactional annotation, but nothing happens after, my entries are not commited.

       

      Anyone has any idea if I am missing from persistence.xml some configuration for transactionManager?

       

      https://github.com/aardelean/points/blob/master/bundle/src/main/application/META-INF/persistence.xml

       

      I am using wildfly 8.1.0.Final, Hibernate OGM 4.1.0.Beta5.

       

      Thanks for any ideas or feedback.

        • 1. Re: TransactionManager configuration for wildfly
          aardelean

          after investigating and debugging, since I haven't found anything useful on the internet, I found out that this line

          <property name="hibernate.transaction.factory_class" value="org.hibernate.transaction.JTATransactionFactory"/>

          was the root of my problems. So I deleted and everything magically started to work. I let JBossArjuna JTA do the work.