0 Replies Latest reply on Mar 18, 2013 3:36 PM by Sebastiao Santos

    Can't bind Hibernate Session to JTA Context

    Sebastiao Santos Newbie

      Hi guys,


      I'm trying to use hibernate with "JTA Session Context". This must provides me with a way to call sessionFactory.getCurrentSession() and I'm waiting that the session must be unique against many calls using CMT in my ejb's 2.1.


      When I call the CMT EJB with demarcation like REQUIRED, I obtain a exception with text "Unable to locate current JTA transaction" that says that I do not have an active transaction.


      It seems to me that my ejb are not been interpreted like an 2.1 EJB, but something different like an 3.0.


      But, isn't this supposed to work ? How can I use Session Context with JTA ?


      The same code, with different TransactionManagerLookup works with Websphere 6.1.