HTTP Async Transport
Stable • Since 1.1.0 • ⚠️Deprecated
|
This extension is deprecated since Quarkus CXF 3.19.0 and is scheduled for removal in 3.21.0.
Use the asynchronous mode of |
Implement async SOAP Clients using Apache HttpComponents HttpClient 5.
Maven coordinates
Create a new project using quarkus-cxf-rt-transports-http-hc5 on code.quarkus.io
or add these coordinates to your existing project:
<dependency>
<groupId>io.quarkiverse.cxf</groupId>
<artifactId>quarkus-cxf-rt-transports-http-hc5</artifactId>
</dependency>
|
Check the User guide and especially its Dependency management section for more information about writing applications with Quarkus CXF. |
Usage
Once the quarkus-cxf-rt-transports-http-hc5 dependency is available in the classpath,
CXF will use HttpAsyncClient for asynchronous calls and will continue using HttpURLConnection for synchronous calls.
Thread pool
Asynchronous clients delivered by this extension leverage ManagedExecutor with a thread pool provided by Quarkus.
The thread pool can be configured using the quarkus.thread-pool.* family of
options.
As a consequence of this, the executor and thread pool related attributes of org.apache.cxf.transports.http.configuration.HTTPClientPolicy are not honored for async clients on Quarkus.
|
You can see more details about the CXF asynchronous client and how to tune it further in CXF documentation. |