1 Reply Latest reply on Feb 10, 2006 12:04 PM by bill.burke

    EJB 3 Method level Interceptors

    azambrano

      Hi All,
      I'm using EJB 3 interceptors, now I need to apply them in method level.
      AFAIK, EJB3 specification include such feature, for instance:

      @Interceptors(org.acme.MyInterceptor.class)
      @ExcludeClassInterceptors
      public void someMethod() {
      }

      EJB3 Core Draft Page 275

      While trying to do this with JBoss 4.0.3-SP1 I found that @Interceptor
      and @Interceptors annotations target TYPE elements.

      So, I'm unable to define method level interceptors.

      I've already checked the release notes for the EJB 3.0 RC4 but there is nothing about this topic.

      May be I'm missing something...

      Cuold you please give me any comments about that?

      regards.
      art