You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2008/02/19 20:32:43 UTC

[jira] Resolved: (CXF-1074) @Resource private WebServiceContext context can't be injected when using the spring transaction enhancement

     [ https://issues.apache.org/jira/browse/CXF-1074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-1074.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.4


There are a couple ways around this now.   The easiest is to import META-INF/cxf/cxf-extension-jaxws.xml which will register a listener to make sure the WebServiceContext is injected into any bean that uses it.


> @Resource private WebServiceContext context  can't be injected when using the spring transaction enhancement
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-1074
>                 URL: https://issues.apache.org/jira/browse/CXF-1074
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.0, 2.0.1, 2.0.2
>            Reporter: willem Jiang
>            Assignee: willem Jiang
>             Fix For: 2.0.4
>
>
> Here the parts of the spring configuration file
> <bean id="userService" parent="txProxyTemplate">
> 		<property name="target">
> 			<bean
> 				class="test.UserServiceImpl"
> 				autowire="byName" />
> 		</property>
> </bean>
> <jaxws:endpoint id="userWebService" implementor="#userService"
> 		address="/userWebService">
> </jaxws:endpoint>
> I can't read any context in the test.UserServiceImpl even I declare the @Resource private WebServiceContext context  in it.
> But when I removed the txProxyTemplate from userService , I got the context in test.UserServiceImpl. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.