HTTP connection pooling using HttpClient

John picture John · Jan 31, 2011 · Viewed 86.3k times · Source
  • How can I create a pool of connections using HttpClient?
  • I have to make frequent connections to the same server. Is it worth creating such a pool?
  • Is it possible to keep live connections and use it for various requests, and if yes how can I do so?

I am developing in Java, using Apache HTTP Client.

Answer

pssh picture pssh · Nov 13, 2013

PoolingClientConnectionManager is Deprecated now . from (4.3 version) use PoolingHttpClientConnectionManager.