On Tue, 2015-05-19 at 08:28 +0530, Mahendran Pirinthapan wrote: > Hi all, > > In one of our project we are using httpclient-4.1.1 (we have to stick with > this version for some reason) to send requests to a remote server. We are > having a long running production environment for this project and we can > not restart the server frequently. > > Currently we are using the httpclient in singleton manner. That is, we are > using the same httpclient instance to handle all the request using > ThreadSafeClientConnManager. In our production environment there can be > hundreds of request parallel. > > Now I would like to know what would be the recommended way to use the > httpclient. Using in singleton manner?
singleton per distinct HTTP service is the recommended way. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
