cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CXF-1074) @Resource private WebServiceContext context can't be injected when using the spring transaction enhancement
Date Tue, 19 Feb 2008 19:32:43 GMT

     [ 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.


Mime
View raw message