| |
|
| java.lang.Object org.jboss.ejb.plugins.AbstractInterceptor org.jboss.ejb.plugins.AbstractTxInterceptor
All known Subclasses: org.jboss.ejb.plugins.TxInterceptorCMT, org.jboss.ejb.plugins.AbstractTxInterceptorBMT,
AbstractTxInterceptor | abstract class AbstractTxInterceptor extends AbstractInterceptor (Code) | | A common superclass for the transaction interceptors.
The only important method in this class is invokeNext which is incharge
of invoking the next interceptor and if an exception is thrown, it must
follow the rules in the EJB 2.0 specification section 18.3. These
rules specify if the transaction is rolled back and what exception
should be thrown.
author: Ole Husgaard author: Dain Sundstrom version: $Revision: 57209 $ |
Field Summary | |
final protected static Method | ejbTimeout A reference to
javax.ejb.TimedObject.ejbTimeout . | protected TransactionManager | tm Local reference to the container's TransactionManager. |
Method Summary | |
public void | create() | protected Object | invokeNext(Invocation invocation, boolean inheritedTx) This method calls the next interceptor in the chain.
All Throwables are caught and divided into two groups: application
exceptions and system exceptions. |
ejbTimeout | final protected static Method ejbTimeout(Code) | | A reference to
javax.ejb.TimedObject.ejbTimeout .
|
tm | protected TransactionManager tm(Code) | | Local reference to the container's TransactionManager.
|
invokeNext | protected Object invokeNext(Invocation invocation, boolean inheritedTx) throws Exception(Code) | | This method calls the next interceptor in the chain.
All Throwables are caught and divided into two groups: application
exceptions and system exceptions. Application exception are simply
rethrown. System exceptions result in the transaction being marked
for rollback only. If the transaction was not started by the container
(i.e., it was inherited from the client) the system exception is wrapped
in a TransactionRolledBack[Local]Exception.
Parameters: invocation - The Invocation of this call. Parameters: inheritedTx - If true the transaction has just been startedin this interceptor. throws: Exception - if an exception occures in the interceptor chain. Theactual exception throw is governed by the rules in the EJB 2.0specification section 18.3 |
|
|
|