[jboss-jira] [JBoss JIRA] (WFLY-3336) Injection of SpringBean into EJB doesn't work if Spring is installed as static module

Ingo Weiss (JIRA) issues at jboss.org
Fri Aug 8 07:04:29 EDT 2014


    [ https://issues.jboss.org/browse/WFLY-3336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12991716#comment-12991716 ] 

Ingo Weiss commented on WFLY-3336:
----------------------------------

I've seen this before, it is not a WildFly bug, it is a Spring behaviour regarding classloading of Spring when this is installed as a module.

The EJB needs to extend SpringBeanAutowiringSupport. That should do the trick.

> Injection of SpringBean into EJB doesn't work if Spring is installed as static module
> -------------------------------------------------------------------------------------
>
>                 Key: WFLY-3336
>                 URL: https://issues.jboss.org/browse/WFLY-3336
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: EJB
>    Affects Versions: 8.1.0.CR1
>            Reporter: Tomas Repel
>            Assignee: David Lloyd
>
> If you inject SpringBean into EJB using SpringBeanAutowiringInterceptor and the Spring core jars are available as static module, the injection doesn't work.
> Reproducer:
> https://github.com/trepel/WFLY-3336-Reproducer



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the jboss-jira mailing list