Class LoggingInterceptor

  • All Implemented Interfaces:
    org.jboss.invocation.Interceptor

    public class LoggingInterceptor
    extends Object
    implements org.jboss.invocation.Interceptor
    Logs any exceptions/errors that happen during invocation of Jakarta Enterprise Beans methods, as specified by the Enterprise Beans 3 spec, section 14.3

    Note: This should be the near the start of interceptor in the chain of interceptors, for this to be able to catch all kinds of errors/exceptions. It should also be run inside the exception transforming interceptor, to make sure that the original exception is logged

    Author:
    Jaikiran Pai
    • Field Detail

      • LOGGING_ENABLED_SERVICE_NAME

        public static final org.jboss.msc.service.ServiceName LOGGING_ENABLED_SERVICE_NAME
      • FACTORY

        public static final org.jboss.invocation.InterceptorFactory FACTORY
    • Method Detail

      • processInvocation

        public Object processInvocation​(org.jboss.invocation.InterceptorContext interceptorContext)
                                 throws Exception
        Specified by:
        processInvocation in interface org.jboss.invocation.Interceptor
        Throws:
        Exception