HTTP connection pool in Apache CXF

I'm trying to check if Apache CXF implements HTTP Connection Pooling ? If so, how can we customize the same. If not, how can we achieve the same?

This flow is slightly directed to the same. But it is unclear whether the HTTPConduit method HTTPConduit the same or the proper setup.

Can someone help me with this?

+7
apache connection-pooling cxf
source share
1 answer

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.

+6
source

All Articles