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 Details

    • BMTInterceptor

      public BMTInterceptor(EJBComponent component)
  • Method Details

    • 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:
      processInvocation in interface org.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 a EJBException and 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()