[ 
https://issues.apache.org/jira/browse/CXF-6452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14586196#comment-14586196
 ] 

Sergey Beryozkin commented on CXF-6452:
---------------------------------------

CXF Spring integration is about letting users create the endpoints with 
jaxws:endpoint and jaxrs:server Spring elements. It is not about managing the 
proxies such as HttpServletRequest that Spring may inject into a given service 
bean using its own Spring mechanism.
The standard way is to get it as a property from JAX-WS WebServiceContext or 
JAX-RS @Context annotated field. CXF is not doing SpringWS which probably 
supports the above.

> Spring Autowired annotataion on HttpServletRequest can not get latest request
> -----------------------------------------------------------------------------
>
>                 Key: CXF-6452
>                 URL: https://issues.apache.org/jira/browse/CXF-6452
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.1.0
>         Environment: Windows, Java HotSpot(TM) 64-Bit Server VM (build 
> 24.60-b09, mixed mode)
>            Reporter: xfcjscn
>              Labels: autowired, request, spring
>
> Autowired HttpServletRequest updated to wrapped version in 
> FrameworkServlet.processRequest() via 
> RequestContextHolder.setRequestAttributes(), so that further processes which 
> rely on Autowired HttpServletRequest can get wrapped version not original 
> version. 
> While CXF spring integration don't update it, and it will get original 
> request not wrapped version.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to