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.