|
|||||||||||
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.AbstractTxInterceptorBMT org.jboss.ejb.plugins.TxInterceptorBMT
This interceptor handles transactions for session BMT beans.
Nested Class Summary | |
static class |
AbstractTxInterceptorBMT.UserTxFactory
|
Field Summary | |
protected static Method |
ejbTimeout
A reference to TimedObject.ejbTimeout(javax.ejb.Timer) . |
protected boolean |
stateless
If false , transactions may live across bean instance
invocations, otherwise the bean instance should terminate any
transaction before returning from the invocation. |
protected TransactionManager |
tm
Local reference to the container's TransactionManager. |
Fields inherited from class org.jboss.ejb.plugins.AbstractInterceptor |
container, log, nextInterceptor |
Constructor Summary | |
TxInterceptorBMT()
|
Method Summary | |
void |
create()
|
Object |
invoke(Invocation mi)
??? |
Object |
invokeHome(Invocation mi)
??? |
protected Object |
invokeNext(Invocation mi)
|
protected Object |
invokeNext(Invocation invocation,
boolean inheritedTx)
This method calls the next interceptor in the chain. |
void |
resetStatistic()
|
Map |
retrieveStatistic()
|
void |
sample(Object s)
|
void |
stop()
|
Methods inherited from class org.jboss.ejb.plugins.AbstractInterceptor |
destroy, getContainer, getNext, setContainer, setNext, start |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean stateless
false
, transactions may live across bean instance
invocations, otherwise the bean instance should terminate any
transaction before returning from the invocation.
This attribute defaults to true
.
protected static final Method ejbTimeout
TimedObject.ejbTimeout(javax.ejb.Timer)
.
protected TransactionManager tm
Constructor Detail |
public TxInterceptorBMT()
Method Detail |
public void create() throws Exception
Exception
public Object invokeHome(Invocation mi) throws Exception
Interceptor
invokeHome
in interface Interceptor
invokeHome
in class AbstractInterceptor
Exception
public Object invoke(Invocation mi) throws Exception
Interceptor
invoke
in interface Interceptor
invoke
in class AbstractInterceptor
Exception
public void sample(Object s)
public Map retrieveStatistic()
public void resetStatistic()
public void stop()
stop
in interface org.jboss.system.Service
stop
in class AbstractInterceptor
protected Object invokeNext(Invocation mi) throws Exception
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 |