public interface: BeanTransactionPolicy
All Implemented Interfaces:
All Known Implementing Classes:
BeanTransactionPolicy is an extension to the TransactionPolicy which provides
operations for controlling a JEE bean managed transaction.
|Method from org.apache.openejb.core.transaction.BeanTransactionPolicy Detail:|
public UserTransaction getUserTransaction()
Gets the UserTransaction the bean uses to manage the transaction.
public void resumeUserTransaction(SuspendedTransaction suspendedTransaction) throws SystemException
Resumes the transaction contained in the suspended transaction token.
After this method completes the transaction will be resumes or if there
is a problem it will be rolled back.
public SuspendedTransaction suspendUserTransaction() throws SystemException
Syspends the bean managed transaction. This is mainly used by stateful
session beans which are required to maintain the bean managed transaction
between calls. After this method completes the transaction will be
suspended or if there is a problem it will be rolled back.