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

Injection by <ejb-ref> doesn't work for interceptors in ejb-jar.xml descriptor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.1.0.Final
    • None
    • None
    • None

    Description

      Injection of session bean doesn't work when is specified in ejb-jar.xml for interceptors.
      Simple test could be found on:
      https://github.com/ochaloup/jboss-as/commit/f7ab8a1fbb28f7a3a253e0d678d76926a124f45c

      <interceptors>
        <interceptor>
      	  <interceptor-class>org.jboss.as.test.integration.ejb.interceptor.complex.a.XMLInterceptorB</interceptor-class>
      	  <around-invoke>
      		  <method-name>intercept</method-name>
      	  </around-invoke>
      	  <ejb-ref>
      		  <ejb-ref-name>ejb/Session2</ejb-ref-name>
      		  <ejb-ref-type>Session</ejb-ref-type>
      		  <remote>org.jboss.as.test.integration.ejb.interceptor.complex.a.MySession2RemoteB</remote>
      		  <ejb-link>MySession2BeanB</ejb-link>
      		  <injection-target>
      			  <injection-target-class>org.jboss.as.test.integration.ejb.interceptor.complex.a.XMLInterceptorB</injection-target-class>
      			  <injection-target-name>session2</injection-target-name>
      		  </injection-target>
      	  </ejb-ref>
        </interceptor>
      </interceptors>
      

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            ochaloup@redhat.com Ondrej Chaloupka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: