I was looking through the book Nuclear Persistence with Hibernation and was stuck on page # 494. We continue the conversation, establishing hibernate.current_session_context_class to managed;whether this means that I cannot use ' jta (or javax.jta.UserTransaction)' inside my methods?
These assumptions get stronger when I look at the interceptor code on page # 494. In the interceptor, we call " session.beginTransaction", which means that we use the Hibernate transaction API to manage the transaction.
Does this mean that my objects cannot use UserTransaction.begin () / commit () to manage the transaction?
I say this because somewhere in this book I even read that when you use UserTransaction to manage transaction borders, you should not use the Hibernate transaction API?
You need help here.
Vicky source
share