How does a session bean obtain a JTA UserTransaction object?
Created Dec 14, 1999
Jerry Smith
If it's necessary to engage in explicit transaction management, a session bean can be designed for bean-managed transactions and obtain a UserTransaction object via the EJBContext using the getUserTransaction() method. (It may also use JNDI directly, but it's simpler to use this convenience method.)