Package org.jboss.as.ejb3.tx
Class BMTInterceptor
- java.lang.Object
-
- org.jboss.as.ejb3.tx.BMTInterceptor
-
- All Implemented Interfaces:
org.jboss.invocation.Interceptor
- Direct Known Subclasses:
EjbBMTInterceptor,StatefulBMTInterceptor
public abstract class BMTInterceptor extends Object implements org.jboss.invocation.Interceptor
Suspend an incoming tx.- Author:
- Bill Burke, Ole Husgaard, Carlo de Wolf
-
-
Constructor Summary
Constructors Constructor Description BMTInterceptor(EJBComponent component)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description EJBComponentgetComponent()protected intgetCurrentTransactionTimeout(EJBComponent component)protected ExceptionhandleException(org.jboss.invocation.InterceptorContext invocation, Throwable ex)Checks if the passed exception is an application exception.protected abstract ObjecthandleInvocation(org.jboss.invocation.InterceptorContext invocation)ObjectprocessInvocation(org.jboss.invocation.InterceptorContext context)
-
-
-
Constructor Detail
-
BMTInterceptor
public BMTInterceptor(EJBComponent component)
-
-
Method Detail
-
handleInvocation
protected abstract Object handleInvocation(org.jboss.invocation.InterceptorContext invocation) throws Exception
- Throws:
Exception
-
processInvocation
public Object processInvocation(org.jboss.invocation.InterceptorContext context) throws Exception
- Specified by:
processInvocationin interfaceorg.jboss.invocation.Interceptor- Throws:
Exception
-
handleException
protected Exception handleException(org.jboss.invocation.InterceptorContext invocation, Throwable ex) throws Exception
Checks if the passed exception is an application exception. If yes, then throws back the exception as-is. Else, wraps the exception in aEJBExceptionand throws the EJBException- Parameters:
ex- The exception to handle- Throws:
Exception- Either the passed exception or an EJBException
-
getCurrentTransactionTimeout
protected int getCurrentTransactionTimeout(EJBComponent component) throws jakarta.transaction.SystemException
- Throws:
jakarta.transaction.SystemException
-
getComponent
public EJBComponent getComponent()
-
-