[jboss-jira] [JBoss JIRA] (WFLY-8693) @Resource not working on Dynamic Servlets

Martin Kouba (JIRA) issues at jboss.org
Wed May 3 08:34:00 EDT 2017


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

Martin Kouba commented on WFLY-8693:
------------------------------------

Moved from WildFly Swarm. It seems that dynamic servlet registrations are not treated as regular EE components, ie. resource injection is not performed.

> @Resource not working on Dynamic Servlets
> -----------------------------------------
>
>                 Key: WFLY-8693
>                 URL: https://issues.jboss.org/browse/WFLY-8693
>             Project: WildFly
>          Issue Type: Bug
>          Components: Web (Undertow)
>    Affects Versions: 10.1.0.Final
>            Reporter: Dan Siviter
>
> When a dynamic servlet is used then {{@Resource}} does not work. When using {{@WebServlet}} it does inject fine and only appears to be associated with dynamic ones. Test used {{ManagedExecutorService}} but it may apply to more.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list