[jboss-jira] [JBoss JIRA] (AS7-2776) Injection by <ejb-ref> doesn't work for interceptors in ejb-jar.xml descriptor

Ondřej Chaloupka (Updated) (JIRA) jira-events at lists.jboss.org
Thu Nov 24 08:01:41 EST 2011


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

Ondřej Chaloupka updated AS7-2776:
----------------------------------

    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

{code:xml}
<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>
{code}

  was:
Injection of session bean doesn't work when is specified in ejb-jar.xml for interceptors. 

{code:xml}
<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>
{code:xml}


    
> Injection by <ejb-ref> doesn't work for interceptors in ejb-jar.xml descriptor 
> -------------------------------------------------------------------------------
>
>                 Key: AS7-2776
>                 URL: https://issues.jboss.org/browse/AS7-2776
>             Project: Application Server 7
>          Issue Type: Bug
>            Reporter: Ondřej Chaloupka
>            Assignee: Stuart Douglas
>
> 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
> {code:xml}
> <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>
> {code}

--
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