This content has been marked as final.
Show 3 replies
-
1. Re: Cannot join transaction - Mixing CMT and BMT
ctian Oct 9, 2006 5:20 AM (in response to ctian)In my persistence.xml the following properties caused the problem:
<property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/> <property name="hibernate.transaction.factory_class" value="org.hibernate.transaction.JTATransactionFactory"/>
After removing the lines, it worked. -
2. Re: Cannot join transaction - Mixing CMT and BMT
jmcclure Dec 3, 2006 10:25 AM (in response to ctian)Not sure if you found more information, but here is what I have discovered through testing...
I experienced the same problem with the transaction configuration. Seems that when you configure Hibernate with a factory_class definition other than the default (JDBC), it assumes that ITis responsible for initiating JTA transactions. If you leave the property configuration out, then Hibernate assumes someone else will be responsible (the container). -
3. Re: Cannot join transaction - Mixing CMT and BMT
rfoyle Apr 24, 2007 1:04 PM (in response to ctian)Not sure when to use/not use, but:
org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
seemed to do the trick for me.
-R