|
|||||||||||
| 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.AbstractTxInterceptor
org.jboss.ejb.plugins.TxInterceptorCMT
This interceptor handles transactions for CMT beans.
| Field Summary | |
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 | |
void |
create()
|
protected byte |
getTransactionMethod(Method m,
InvocationType iface)
|
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, 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 TransactionManager tm
| Constructor Detail |
public TxInterceptorCMT()
| Method Detail |
public void importXml(Element ielement)
importXml in interface XmlLoadablepublic static org.jboss.util.deadlock.ApplicationDeadlockException isADE(Throwable t)
public Object invokeHome(Invocation invocation) throws Exception
Interceptor
invokeHome in interface InterceptorinvokeHome in class AbstractInterceptorExceptionpublic Object invoke(Invocation invocation) throws Exception
invoke in interface Interceptorinvoke in class AbstractInterceptorExceptionprotected byte getTransactionMethod(Method m, InvocationType iface)
protected void throwJBossException(Exception e, InvocationType type) throws TransactionRolledbackException
e - the exceptiontype - the invocation type
TransactionRolledbackExceptionpublic void sample(Object s)
public Map retrieveStatistic()
public void resetStatistic()
public void create()
throws Exception
create in interface org.jboss.system.Servicecreate in class AbstractInterceptorExceptionprotected 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.
Excetion - 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
Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||