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.
|