JDO s Support for Bean-Managed Transactions


JDO's Support for Bean-Managed Transactions

Even when the EJB uses BMT, the EJB container imposes some rules on the transactional boundaries that the bean code must observe. In a stateless session bean, the bean-managed transaction must complete prior to the end of the business method. In a stateful session bean, the bean-managed transaction can be carried over from one invocation of a business method to the next. In all cases, the bean-managed transaction cannot be part of the client's transaction, if there is one.

When the bean uses BMT, the EJB container calls the bean without starting a managed transaction. A JDO implementation that is aware of managed transactions starts the container-supported javax.transaction.UserTransaction when the JDO Transaction begins. This action allows the container to manage the transaction in the event that other beans are called from within the BMT bean.




Using and Understanding Java Data Objects
Using and Understanding Java Data Objects
ISBN: 1590590430
EAN: 2147483647
Year: 2005
Pages: 156
Authors: David Ezzio

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net