Name
TransactionManager
Synopsis
The TransactionManager
interface is used by a transactional
application server, such as an EJB server, to create and manage
transactions on behalf of client applications. The application server
can use the TransactionManager
interface to create new transactions
for the current thread, suspend and resume the current transaction,
and commit or rollback the transaction. The setTransactionTimeout()
method is used to set the timeout (in seconds) for any subsequent
transactions started through the TransactionManager
.
public interface TransactionManager { // Public Instance Methods public abstract void begin( ) throws javax.transaction.NotSupportedException, javax.transaction.SystemException; public abstract void commit( ) throws RollbackException, HeuristicMixedException, HeuristicRollbackException, java.lang.SecurityException, java.lang.IllegalStateException, javax.transaction.SystemException; public abstract int getStatus( ) throws javax.transaction.SystemException; public abstract Transaction getTransaction( ) throws javax.transaction.SystemException; public abstract void resume( Transaction tobj) throws InvalidTransactionException, java.lang.IllegalStateException, javax.transaction.SystemException; public abstract void rollback( ) throws java.lang.IllegalStateException, java.lang.SecurityException, javax.transaction.SystemException; public abstract void setRollbackOnly( ) throws java.lang.IllegalStateException javax.transaction.SystemException; public ...
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.