[jboss-jira] [JBoss JIRA] (WFLY-1974) @Resource ManagedExecutorService produces a null field

jaikiran pai (JIRA) jira-events at lists.jboss.org
Mon Sep 2 05:31:03 EDT 2013


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

jaikiran pai commented on WFLY-1974:
------------------------------------

Eduardo, just a FYI - take a look at WeldResourceInjectionServices which is where the @Resource injection in CDI beans is done.

                
> @Resource ManagedExecutorService produces a null field
> ------------------------------------------------------
>
>                 Key: WFLY-1974
>                 URL: https://issues.jboss.org/browse/WFLY-1974
>             Project: WildFly
>          Issue Type: Bug
>          Components: CDI / Weld
>    Affects Versions: 8.0.0.Alpha4
>            Reporter: Juergen Zimmermann
>            Assignee: Eduardo Martins
>
> I compiled the latest WildFly master and tried:
> {code}
> @Resource
> private ManagedExecutorService managedExecutorService
> {code}
> However, the injected field managedExecutorService is null. This issue is gone when I use:
> {code}
> @Resource(mappedName = "java:comp/DefaultManagedExecutorService")
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list