You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andriy Redko (Jira)" <ji...@apache.org> on 2021/06/03 22:21:00 UTC
[jira] [Resolved] (CXF-8547) How to use
org.apache.cxf.endpoint.Client->requestContext thread-safe
[ https://issues.apache.org/jira/browse/CXF-8547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andriy Redko resolved CXF-8547.
-------------------------------
Resolution: Information Provided
> How to use org.apache.cxf.endpoint.Client->requestContext thread-safe
> ---------------------------------------------------------------------
>
> Key: CXF-8547
> URL: https://issues.apache.org/jira/browse/CXF-8547
> Project: CXF
> Issue Type: Wish
> Reporter: Thanh Nguyen
> Priority: Major
>
> From the official CXF Q&A [https://cxf.apache.org/faq.html#FAQ-AreJAX-WSclientproxiesthreadsafe?] about WSClientProxythreadsafe, I understand that thread-safe is not possible to `org.apache.cxf.endpoint.Client->requestContext`.
> That being said, I cannot override ListHeader to the RequestContext and use them concurrently especially in the Spring Reactor manner.
> Example:
> {code:java}
> // code placeholder
> Client client = ClientProxy.getClient(...);
> client.getRequestContext().put(Header.HEADER_LIST, List.of(identityHeader));
> {code}
> So my question is, do you have any suggestions on how to overcome it? The document suggested using a "pool of instances" but do we have a better way? If not, do we have any example case using of "pool of instances".
--
This message was sent by Atlassian Jira
(v8.3.4#803005)