[jboss-jira] [JBoss JIRA] (WFLY-3657) JAXWS handlers do not support injection
Alessio Soldano (JIRA)
issues at jboss.org
Wed Jul 23 04:25:31 EDT 2014
[ https://issues.jboss.org/browse/WFLY-3657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12987322#comment-12987322 ]
Alessio Soldano commented on WFLY-3657:
---------------------------------------
Yes, please provide the application to reproduce the issue. I believe injection should be working on jaxws handlers; I have a test running daily [1] that covers @EJB injection + @PostConstruct and I believe CDI is working too, otherwise we'd have TCK failures. So I think you're either hitting a edge case or there's something wrong in the way the app is configured.
Thanks
[1] http://jbossws-qa.jboss.org:8180/hudson/job/CXF-CORE-AS-8.1.0/73/testReport/org.jboss.test.ws.jaxws.jbws2634/JBWS2634TestCase/
> JAXWS handlers do not support injection
> ---------------------------------------
>
> Key: WFLY-3657
> URL: https://issues.jboss.org/browse/WFLY-3657
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Web Services
> Affects Versions: 8.1.0.Final
> Environment: Ubuntu 12.04
> JDK 1.8.0_11
> Reporter: Thomas Kriechbaum
> Assignee: Alessio Soldano
>
> According to the JavaEE spec JAXWS-handlers should support injection (@Inject, @EJB), @PostConstruct and @PreDestroy.
> In my test case (top-down approach, handler class is defined within *_handler.xml) @PostCunstruct works, but managed beans (CDI, EJB) are not injected via @Inject or @EJB.
> Possible workaround for EJBs: manual JNDI-lookup within @PostConstruct method. For CDI-managed beans you have to lookup the BeanManager and load the desired bean yourself.
> It seems, that this issue should have been addressed by WFLY-2362. But it is still does not work.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the jboss-jira
mailing list