|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.ejb.plugins.AbstractInterceptor
org.jboss.ejb.plugins.TxInterceptorCMT
public class TxInterceptorCMT
This interceptor handles transactions for CMT beans.
| Field Summary | |
|---|---|
protected static Method |
ejbTimeout
A reference to TimedObject.ejbTimeout(javax.ejb.Timer). |
static int |
MAX_RETRIES
|
static Random |
random
|
protected TransactionManager |
tm
Local reference to the container's TransactionManager. |
| Fields inherited from class org.jboss.ejb.plugins.AbstractInterceptor |
|---|
container, log, nextInterceptor |
| Constructor Summary | |
|---|---|
TxInterceptorCMT()
|
|
| Method Summary | |
|---|---|
protected void |
checkTransactionStatus(Transaction tx,
InvocationType type)
The application has not thrown an exception, but... |
void |
create()
|
void |
importXml(Element ielement)
|
Object |
invoke(Invocation invocation)
This method does invocation interpositioning of tx management |
Object |
invokeHome(Invocation invocation)
??? |
protected Object |
invokeNext(Invocation invocation,
boolean inheritedTx)
This method calls the next interceptor in the chain. |
static org.jboss.util.deadlock.ApplicationDeadlockException |
isADE(Throwable t)
Detects exception contains is or a ApplicationDeadlockException. |
void |
resetStatistic()
|
Map |
retrieveStatistic()
|
void |
sample(Object s)
|
protected void |
throwJBossException(Exception e,
InvocationType type)
Rethrow the exception as a rollback or rollback local |
| Methods inherited from class org.jboss.ejb.plugins.AbstractInterceptor |
|---|
destroy, getContainer, getNext, isAppException, setContainer, setNext, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int MAX_RETRIES
public static Random random
protected static final Method ejbTimeout
TimedObject.ejbTimeout(javax.ejb.Timer).
protected TransactionManager tm
| Constructor Detail |
|---|
public TxInterceptorCMT()
| Method Detail |
|---|
public static org.jboss.util.deadlock.ApplicationDeadlockException isADE(Throwable t)
public void importXml(Element ielement)
importXml in interface XmlLoadable
public void create()
throws Exception
create in interface org.jboss.system.ServiceException
public Object invokeHome(Invocation invocation)
throws Exception
Interceptor
invokeHome in interface InterceptorinvokeHome in class AbstractInterceptorinvocation - ???
Exception - ???
public Object invoke(Invocation invocation)
throws Exception
invoke in interface Interceptorinvoke in class AbstractInterceptorinvocation - ???
Exception - ???
protected void throwJBossException(Exception e,
InvocationType type)
throws TransactionRolledbackException
e - the exceptiontype - the invocation type
TransactionRolledbackException
protected void checkTransactionStatus(Transaction tx,
InvocationType type)
throws TransactionRolledbackException
tx - the transactiontype - the invocation type
TransactionRolledbackException - if transaction is no longer activepublic void sample(Object s)
public Map retrieveStatistic()
public void resetStatistic()
protected Object invokeNext(Invocation invocation,
boolean inheritedTx)
throws Exception
invocation - The Invocation of this call.inheritedTx - If true the transaction has just been started
in this interceptor.
Exception - if an exception occures in the interceptor chain. The
actual exception throw is governed by the rules in the EJB 2.0
specification section 18.3
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||