How can we perform connection pooling using httpclient.
Printable View
How can we perform connection pooling using httpclient.
I think this happens when we create the HttpClient instance once and re-use it over the lifetime of the application, for example, in a servlet, having this be an class member and created on init(). ; creating a new HttpClient object on before every method invocation will certainly work on a new HTTP connection.
note that we still need to release the connection on every method.
see also: HttpClient - HttpClient Tutorial