[jboss-jira] [JBoss JIRA] (AS7-3748) Using wildcards in ejb-name for interceptor-binding doesnt work in ejb-jar.xml descriptor

Stuart Douglas (JIRA) jira-events at lists.jboss.org
Wed Feb 15 00:37:01 EST 2012


     [ https://issues.jboss.org/browse/AS7-3748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart Douglas resolved AS7-3748.
---------------------------------

    Resolution: Rejected


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

        


More information about the jboss-jira mailing list