Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3748

Using wildcards in ejb-name for interceptor-binding doesnt work in ejb-jar.xml descriptor

XMLWordPrintable

      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>

              jaikiran Jaikiran Pai (Inactive)
              Michael_Gronau Michael Gronau (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: