I do not understand this (from Hibernate reference guide chapter 3.8.3. Current Session context management with JTA):
Your code can either use JTA programmatically
through UserTransaction, or (recommended for portable code) use the
Hibernate Transaction API to set transaction boundaries. If you run in an EJB
container, declarative transaction demarcation with CMT is preferred.
I have a method in which I need to manage transaction management by myself.
I have a EJB-Container (
JBOSS), but I guess, I do not use CMT - I am not sure.
I use JPA with EJB3.0.
So my question, which type should I use to be able to handle Transaction within a Method by myself?