Apache CXF uses HTTPUrlConnection internally and relies on java system properties to configure client connection parameters.
The two main options you can configure are:
http.keepalive (default: true) - Indicates whether persistent connections should be supported. They improve performance by allowing you to reconnect a basic socket connection for multiple HTTP requests. If this parameter is set to true, then persistent connections to HTTP 1.1 servers will be requested.
http.maxConnections (default: 5) - If HTTP keepalive is enabled (see above), this value determines the maximum number of idle connections that will be simultaneously stored in each recipient.
Here is a list of all the properties that you can configure to configure HTTPUrlConnection
Hope this helps.
Tarun tyagi
source share