Atomikos Forum

TransactionManagerLookup

I switched from Hibernate 4.2 to Hibernate 4.3 and my project is not working any more. I'm getting a "HibernateException: Unable to locate current JTA transaction" when I do

Session s = sessionFactory.getCurrentSession();

I've realized that org.hibernate.transaction.TransactionManagerLookup does not exist any more. It was deleted in Hibernate 4.3. How should I change my current configuration?

<hibernate-configuration>
    <session-factory>
        <property name="connection.datasource">testDS</property>
        
        <property name="current_session_context_class">jta</property>
        <property name="transaction.manager_lookup_class">com.atomikos.icatch.jta.hibernate3.TransactionManagerLookup</property>
        <property name="transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property>
        <property name="connection.release_mode">auto</property>
        <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>

        <property name="hibernate.hbm2ddl.auto">create-drop</property>
        <property name="hibernate.show_sql">true</property>
        <mapping class="test.entities.Person" />
        <mapping class="test.entities.CreditCard" />
        <mapping class="test.entities.ExampleRevEntity" />
    </session-factory>
</hibernate-configuration>

Regards, Sebastian
Sebastian Lorenz Send private email
Wednesday, December 18, 2013
 
 
I've have posted my solution here:
  http://stackoverflow.com/questions/20681245/how-to-use-atomikos-transaction-essentials-with-hibernate-4-3 
Can you check if this is OK? Maybe there already is an implementation of JtaPlatform provided by you, but I couldn't find any.
Sebastian Lorenz Send private email
Thursday, December 19, 2013
 
 

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

Other recent topics Other recent topics