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
Suspend an incoming tx.
- Author:
- Bill Burke, Ole Husgaard, Carlo de Wolf
-
Field Summary
Fields inherited from interface org.jboss.invocation.Interceptor
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) processInvocation(org.jboss.invocation.InterceptorContext context)
-
Constructor Details
-
BMTInterceptor
-
-
Method Details
-
handleInvocation
protected abstract Object handleInvocation(org.jboss.invocation.InterceptorContext invocation) throws Exception - Throws:
Exception
-
processInvocation
- 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
-