[jbossws-issues] [JBoss JIRA] Commented: (JBWS-2596) @Resource and @EJB injection in jaxws endpoints and handlers
Sergey Beryozkin (JIRA)
jira-events at lists.jboss.org
Thu Jul 22 10:57:39 EDT 2010
[ https://jira.jboss.org/browse/JBWS-2596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12540584#action_12540584 ]
Sergey Beryozkin commented on JBWS-2596:
----------------------------------------
Rev 12687 requires an involved test where aspectjrt, aspectjweaver, aopalliance and cglib jars are copied into $JBossHome/common/lib thus it is not included given that these 4 libraries are only needed for a single test. But the minor update is sound anyway, i.e, Class.isAssignableFrom is introduced instead of '=='. Supporting non-CGLIB proxies may require updates to the JBossWS framework but given that Spring can be forced to generate CGLIB proxies in all the cases, this simple update should suffice.
<jaxws:endpoint
id='ServiceImpl'
address='http://@jboss.bind.address@:8080/jaxws-jbws2268'
implementorClass="org.jboss.test.ws.jaxws.jbws2268.EndpointImpl"
implementor='#endpoint'>
<jaxws:invoker>
<bean class='org.jboss.wsf.stack.cxf.InvokerJSE'/>
</jaxws:invoker>
</jaxws:endpoint>
<bean id="endpoint" class="org.jboss.test.ws.jaxws.jbws2268.EndpointImpl"/>
<aop:config>
<aop:aspect id="loggingAspect" ref="simpleLogger">
<aop:before
method="logBefore"
pointcut="execution(* org.jboss.test.ws.jaxws.jbws2268.Endpoint*.*(..))"/>
<aop:after-returning
method="logAfter"
pointcut="execution(* org.jboss.test.ws.jaxws.jbws2268.Endpoint*.*(..))"/>
</aop:aspect>
</aop:config>
<bean id="simpleLogger" class="org.jboss.test.ws.jaxws.jbws2268.LoggingAspect"/>
Note a PostConstruct/PreDestroy related test was copied from framework and the spring config introduced but it is sufficient to verify the injection works for CGLIB proxies
> @Resource and @EJB injection in jaxws endpoints and handlers
> ------------------------------------------------------------
>
> Key: JBWS-2596
> URL: https://jira.jboss.org/browse/JBWS-2596
> Project: JBoss Web Services
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: jbossws-cxf
> Reporter: Richard Opalka
> Assignee: Sergey Beryozkin
> Fix For: jbossws-cxf-3.4.0
>
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbossws-issues
mailing list