Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-896

Specifying an interceptor-order in ejb-jar.xml also creates a new instance of the interceptor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • AS 5.0.0.CR1
    • AS 4.2.0 GA
    • interceptors
    • None

      Trying to override the order of interceptors in xml from the one specified via annotations in the beans, will lead to duplicate invocations on the interceptors.

      @Interceptors(

      {AnnotatedClassInterceptor3.class, XMLClassInterceptor3.class}

      )
      @Stateless(name="OrderedSLSB")
      public class OrderedSLSB implements OrderedSLSBRemote
      {
      ...
      }

      <interceptor-binding>
      <ejb-name>OrderedSLSB</ejb-name>
      <interceptor-order>
      <interceptor-class>org.jboss.ejb3.test.interceptors2.AnnotatedClassInterceptor3</interceptor-class>
      <interceptor-class>org.jboss.ejb3.test.interceptors2.XMLClassInterceptor3</interceptor-class>
      <interceptor-class>org.jboss.ejb3.test.interceptors2.DefaultInterceptor</interceptor-class>
      </interceptor-order>
      </interceptor-binding>

              rhn-engineering-cdewolf Carlo de Wolf
              rhn-engineering-cdewolf Carlo de Wolf
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: