Class BMTInterceptor

    • 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:
        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