-->
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: JTA TransactionManagerLookup problem with Geronimo / Aries T
PostPosted: Mon Apr 23, 2012 8:56 am 
Newbie

Joined: Mon Dec 11, 2006 12:16 pm
Posts: 2
Location: Belgium
Hi all,

I'm involved in a project running under ServiceMix platform with Spring, Camel, ActiveMQ and Hibernate for the ORM part.

I've decided to go into the JTA way as I've multiple resources to use in a single transaction.

I'm currently using hibernate 3.5 + JPA + Aries Geronimo transaction management.

the problem is:

I have references on UserTransaction and TransactionManager (I got through OSGI reference) and when I try to use Hibernate, I get errors because Hibernate cannot get TransactionManager and UserTransaction.

to solve this , I supposed I had to write a transactionManagerLookup class(hibernate.transaction.manager_lookup_class) and define hibernate.transaction.factory_class but I 'm not really shure everithing is correct...

any idea about how to solve this?

using a more recent version of hibernate is also possible if it can solve the problem in a more easy way...

Michael.


Top
 Profile  
 
 Post subject: Re: JTA TransactionManagerLookup problem with Geronimo / Aries T
PostPosted: Thu Jul 11, 2013 6:07 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 18, 2012 5:03 am
Posts: 36
Location: Fort Wayne, Indiana, USA
I realize this is an old thread, but in case someone's wondering:

Hibernate 4.2/4.3 added full support for OSGi. This included automatically pulling in the container's TransactionManager and UserTransaction services. So, this should now work out of the box!


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.