Class LoggingInterceptor

java.lang.Object
org.jboss.as.ejb3.component.interceptors.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 Details

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

    • processInvocation

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