Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-1555

Optional method-params are not honoured and most specific interceptor order binding should be used

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 1.0.0-Beta6
    • None
    • interceptors
    • None

    Description

      The following binding is ignored:

      <interceptor-binding>
      <ejb-name>OrderedSLSB</ejb-name>
      <interceptor-order>
      <interceptor-class>org.jboss.ejb3.test.interceptors.ejbthree1555.AnnotatedClassInterceptor</interceptor-class>
      <interceptor-class>org.jboss.ejb3.test.interceptors.common.CommonAnnotatedInterceptor</interceptor-class>
      </interceptor-order>
      <method>
      <method-name>methodWithParameter</method-name>
      </method>
      </interceptor-binding>

      In the following descriptor, the first interceptor order is used on methodWithOwn, instead of the second.

      <interceptor-binding>
      <ejb-name>OrderedSLSB</ejb-name>
      <interceptor-order>
      <interceptor-class>org.jboss.ejb3.test.interceptors.ejbthree1555.AnnotatedClassInterceptor</interceptor-class>
      <interceptor-class>org.jboss.ejb3.test.interceptors.common.CommonAnnotatedInterceptor</interceptor-class>
      </interceptor-order>
      <method>
      <method-name>methodWithOwn</method-name>
      </method>
      </interceptor-binding>
      <interceptor-binding>
      <ejb-name>OrderedSLSB</ejb-name>
      <interceptor-order>
      <interceptor-class>org.jboss.ejb3.test.interceptors.ejbthree1555.AnnotatedMethodInterceptor</interceptor-class>
      </interceptor-order>
      <method>
      <method-name>methodWithOwn</method-name>
      <method-params>
      <method-param>java.lang.String</method-param>
      <method-param>java.lang.Integer</method-param>
      </method-params>
      </method>
      </interceptor-binding>

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-cdewolf Carlo de Wolf
              rhn-engineering-cdewolf Carlo de Wolf
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: