3 Replies Latest reply on Jun 8, 2009 4:50 AM by jaikiran pai

    WARN message in InterceptorsFactory

    jaikiran pai Master

      I was looking at https://jira.jboss.org/jira/browse/EJBTHREE-1841 and other similar user complaints about the following WARN log message on first access to a bean:

      09:02:34,655 WARN [InterceptorsFactory] EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container
      

      Looking at the InterceptorsFactory class, which gets called as follows:

      1) Client calls bean method for first time
      2) The call is passed through AOP interceptor chain
      3) AOP starts initializing any per instance advices (InterceptorsFactory is one such advice)
      4) We issue a WARN and return a NoOpInterceptor

      From what i see in the InterceptorsFactory, its probably no longer required since the same functionality is now done through the InjectInterceptorsFactory and InterceptorRegistry.

      Any reason why we should not remove this InterceptorsFactory from ejb3-interceptors-aop.xml AOP advices?