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