-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Cannot join transaction: do not override hibernate.transa...
PostPosted: Thu May 31, 2012 5:28 am 
Newbie

Joined: Thu Mar 19, 2009 4:59 am
Posts: 9
Hello

I'm Using Teneo (http://wiki.eclipse.org/Teneo/Hibernate ... nd_Install) and Hibernate to map EMF objects into the Database.

Teneo 2.0.0 was released a few days ago, with Hibernate 4.1 support. http://martintaal.wordpress.com/2012/05 ... bernate-4/

So I'm trying to update from Hibernate 3.6.2 to 4.1.3. During startup I now get a lot of the following Warnings:
WARN: org.hibernate.ejb.AbstractEntityManagerImpl - HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class

I looked at the 3.6.2 code and found that Ejb3Configuration was setting JoinableCMTTransactionFactory as transaction factory class. In the new code CMTTransactionFactory is set, which seems to have less functionality than JoinableCMTTransactionFactory, since JoinableCMTTransactionFactory extends CMTTransactionFactory.
I do not manually set the factory class.

Do I have to configure a different factory? May this be a bug?

greets and thanks for help!
Flavio

_________________
Organisations- und Prozessdokumentation Software
Qualität Management QMS :: Information Management IMS
http://www.scodi.ch


Top
 Profile  
 
 Post subject: Re: Cannot join transaction: do not override hibernate.transa...
PostPosted: Tue Jun 05, 2012 6:40 am 
Newbie

Joined: Thu Mar 19, 2009 4:59 am
Posts: 9
It was actually a problem of our Software at some place we called EntityManager.joinTransaction(), which is not required anymore in Hibernate 4.1.

I did have to set the following property to get CMT to work.
<prop key="hibernate.transaction.factory_class">org.hibernate.engine.transaction.internal.jta.CMTTransactionFactory</prop>

_________________
Organisations- und Prozessdokumentation Software
Qualität Management QMS :: Information Management IMS
http://www.scodi.ch


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.