title: How to use Atomikos Transaction Essentials with Hibernate >= 4.3
body: <p>I switched from Hibernate 4.2 to Hibernate 4.3 and my project is not working any more. I'm getting an</p>
  
  <blockquote>
    <p>HibernateException: Unable to locate current JTA transaction</p>
  </blockquote>
  
  <p>when I do</p>
  
  <pre><code>Session s = sessionFactory.getCurrentSession();
  </code></pre>
  
  <p>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?</p>
  
  <pre><code>&lt;hibernate-configuration&gt;
  &lt;session-factory&gt;
      &lt;property name="connection.datasource"&gt;testDS&lt;/property&gt;
  
      &lt;property name="current_session_context_class"&gt;jta&lt;/property&gt;
      &lt;property name="transaction.manager_lookup_class"&gt;com.atomikos.icatch.jta.hibernate3.TransactionManagerLookup&lt;/property&gt;
      &lt;property name="transaction.factory_class"&gt;org.hibernate.transaction.CMTTransactionFactory&lt;/property&gt;
      &lt;property name="connection.release_mode"&gt;auto&lt;/property&gt;
      &lt;property name="cache.provider_class"&gt;org.hibernate.cache.NoCacheProvider&lt;/property&gt;
  
      &lt;property name="hibernate.hbm2ddl.auto"&gt;create-drop&lt;/property&gt;
      &lt;property name="hibernate.show_sql"&gt;true&lt;/property&gt;
      &lt;mapping class="test.entities.Person" /&gt;
      &lt;mapping class="test.entities.CreditCard" /&gt;
      &lt;mapping class="test.entities.ExampleRevEntity" /&gt;
  &lt;/session-factory&gt;
  </code></pre>
  
  <p></p>