Atomikos Forum

Atomikos with hibernate4

Hello
 
Atomikos tutorial http://www.atomikos.com/Documentation/HibernateIntegratio show how to configure hibernate2 and hibernate3. My question is..what about hibernate4?
I've tried to use the hibernate3 configuration with hibernate4 jar's without sucess.
 
Atomikos tutorial indicaded:
<prop key="hibernate.transaction.factory_class">
              com.atomikos.icatch.jta.hibernate3.AtomikosJTATransactionFactory
            </prop>
            <prop key="hibernate.transaction.manager_lookup_class">
                com.atomikos.icatch.jta.hibernate3.TransactionManagerLookup
            </prop>
 
Its generate the following erros:
Caused by: java.lang.NoClassDefFoundError: org/hibernate/transaction/TransactionManagerLookup
                at java.lang.ClassLoader.defineClass1(Native Method)
                at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
 
Why it is looking for org/hibernate/transaction/TransactionManagerLookup class if I configured hibernate.transaction.manager_lookup_class to use om.atomikos.icatch.jta.hibernate3.TransactionManagerLookup class?
 
But this in hibernate 4.15 final do not work!
Could someone please help me?
Best Regards
Fernando Franzini Send private email
Friday, February 15, 2013
 
 
Please read:

http://www.atomikos.com/Documentation/HibernateIntegration#With_JPA

You must not use any Lookup class anymore in Hibernate 3.6.x or Hibernate 4.

From your snippet it seems you are using Spring to setup Hibernates SessionFactory - you let Spring manage your transaction boundaries and Hibernate does join your transaction.
Torsten Krah Send private email
Thursday, March 14, 2013
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics