[
http://jira.jboss.com/jira/browse/EJBTHREE-896?page=all ]
Carlo de Wolf updated EJBTHREE-896:
-----------------------------------
Description:
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>
Specifying an interceptor-order in ejb-jar.xml also creates a new
instance of the interceptor
---------------------------------------------------------------------------------------------
Key: EJBTHREE-896
URL:
http://jira.jboss.com/jira/browse/EJBTHREE-896
Project: EJB 3.0
Issue Type: Bug
Affects Versions: AS 4.2.0 CR1
Environment: interceptor2
Reporter: Carlo de Wolf
Assigned To: Carlo de Wolf
Priority: Critical
Fix For: AS 4.2.1
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>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira