Thanh Nguyen created CXF-8547: --------------------------------- Summary: 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
>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)