HTTP Connection pooling in Apache CXF -


i trying check whether apache cxf implements http connection pooling? if yes, how can configure same. if not, how can achieve same?

this thread little direction towards same. it's not clear whether httpconduit has way set same or configure.

can guide me on this?

apache cxf uses httpurlconnection internally , relies on java system properties configure client connection settings.

two main ones can configure follows:

  1. http.keepalive (default: true) - indicates if persistent connections should supported. improve performance allowing underlying socket connection reused multiple http requests. if set true persistent connections requested http 1.1 servers.

  2. http.maxconnections (default: 5) - if http keepalive enabled (see above) value determines maximum number of idle connections simultaneously kept alive, per destination.

here list of properties can set configure httpurlconnection

hope helps.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -