[
https://issues.jboss.org/browse/AS7-3748?page=com.atlassian.jira.plugin.s...
]
Stuart Douglas edited comment on AS7-3748 at 2/15/12 12:37 AM:
---------------------------------------------------------------
When using default interceptors (i.e. the wildcard form) you need to add the interceptor
to the <interceptors> section of the deployment descriptor:
{code}
<interceptors>
<interceptor>
<interceptor-class>com.os.ee.TestInterceptor</interceptor-class>
</interceptor>
</interceptors>
{code}
I know it seems unnecessary, but it is a spec requirement.
was (Author: swd847):
When using default interceptors (i.e. the wildcard form) you need to add the
interceptor to the <interceptors> section of the deployment descriptor:
{code|xml}
<interceptors>
<interceptor>
<interceptor-class>com.os.ee.TestInterceptor</interceptor-class>
</interceptor>
</interceptors>
{code}
I know it seems unnecessary, but it is a spec requirement.
Using wildcards in ejb-name for interceptor-binding doesnt work in
ejb-jar.xml descriptor
-----------------------------------------------------------------------------------------
Key: AS7-3748
URL:
https://issues.jboss.org/browse/AS7-3748
Project: Application Server 7
Issue Type: Bug
Components: EJB
Affects Versions: 7.1.0.CR1b
Reporter: Michael Gronau
Assignee: jaikiran pai
Labels: bindings, ejb-jar.xml, interceptor, wildcar
I'm trying to use a wildcard for ejb name in the ejb-jar.xml to create an
interceptor-binding for all ejb's in the jar file. When I use the full ejb name it
works fine, but it is not useful for us.
It looks like this:
<ejb-jar
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
version="3.0">
<!-- Default interceptor that will apply to all methods for all beans in deployment
-->
<assembly-descriptor>
<interceptor-binding>
<ejb-name>*</ejb-name>
<interceptor-class>com.os.ee.TestInterceptor</interceptor-class>
</interceptor-binding>
</assembly-descriptor>
</ejb-jar>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira