|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.ejb.plugins.AbstractInterceptor org.jboss.ejb.plugins.AbstractTxInterceptor org.jboss.ejb.plugins.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 | |
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, 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 void importXml(Element ielement)
importXml
in interface XmlLoadable
public static org.jboss.util.deadlock.ApplicationDeadlockException isADE(Throwable t)
public Object invokeHome(Invocation invocation) throws Exception
Interceptor
invokeHome
in interface Interceptor
invokeHome
in class AbstractInterceptor
Exception
public Object invoke(Invocation invocation) throws Exception
invoke
in interface Interceptor
invoke
in class AbstractInterceptor
Exception
protected void throwJBossException(Exception e, InvocationType type) throws TransactionRolledbackException
e
- the exceptiontype
- the invocation type
TransactionRolledbackException
public void sample(Object s)
public Map retrieveStatistic()
public void resetStatistic()
public void create() throws Exception
create
in interface org.jboss.system.Service
create
in class AbstractInterceptor
Exception
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 |