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
{
...
}
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>