Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-6979

<ejb-name> tag in <interceptor-binding> should support regular expression usages

    XMLWordPrintable

Details

    • Feature Request
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • None
    • 11.0.0.Alpha1
    • EJB
    • None

    Description

      From the ejb specification the only possibility is to use the full EJB name or the wildcard "*".

      • If the application is too large with many hundreds or thousand ejbs then it is complex to define the interceptor individually for number of beans having a common name pattern.

      The <ejb-name> element in <interceptor-binding> should support regular expression usages. Like following via "ejb-jar.xml" or using "jboss-ejb3.xml":

       
                  <interceptor-binding>
                      <ejb-name>Intercepted*Bean</ejb-name>                                             
                      <interceptor-class&gt;interceptors.InterceptorOne</interceptor-class&gt;
                  </interceptor-binding>
                  <interceptor-binding>
                      <ejb-name>[AB]*Bean</ejb-name>                                             
                      <interceptor-class&gt;interceptors.InterceptorOne</interceptor-class&gt;
                  </interceptor-binding>
      

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            rhn-support-wfink Wolf-Dieter Fink
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: