[
https://issues.apache.org/jira/browse/CXF-5626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13943069#comment-13943069
]
Alessio Soldano commented on CXF-5626:
--------------------------------------
My gut feeling (still have to verify) is that *anywhere* we have try-finally
blocks setting an clearing the threadlocal reference to the MessageContext in
the WebServiceContext, the clear operation should actually be replaced by a
restore of the former MessageContext instance (if any, otherwise null).
> MessageContext is lost when JAX-WS client is invoked from within a JAX-WS
> endpoint impl
> ---------------------------------------------------------------------------------------
>
> Key: CXF-5626
> URL: https://issues.apache.org/jira/browse/CXF-5626
> Project: CXF
> Issue Type: Bug
> Components: JAX-WS Runtime
> Reporter: Kyle Lape
> Assignee: Alessio Soldano
> Attachments: cxf5626.diff
>
>
> When a JAX-WS client is invoked inside an endpoint, the endpoint's
> {{MessageContext}} is bumped out of the {{ThreadLocal}} and is not replaced
> at the end of the client call. This makes the {{MessageContext}} unavailable
> to endpoints after they make any JAX-WS invocation.
--
This message was sent by Atlassian JIRA
(v6.2#6252)