hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Multiple calls to HttpClient
Date Wed, 15 Oct 2008 17:08:03 GMT
On Wed, 2008-10-15 at 16:44 +0200, Christine wrote:
> On Wed, 2008-10-15 at 00:07 +0200, Oleg Kalnichevski wrote:
> 
> > It is a little more complex than that. You do not, as long as that
> > instance is used for the entire lifespan of the application. One really
> > ought to shut down the connection manager before it goes out of scope /
> > becomes garbage. This is especially important for managed environments
> > such as servlet containers where applications can be undeployed and
> > redeployed.
> 
> Does "this instance" refer to the HttpClient, or to the
> connectionmanager?

Connection manager

>  I use one instance of DefaultHttpClient during the
> lifetime of my application. Does this client create new connection
> managers that I have to shutdown, or does it use one connectionmanager?
> 

Just one. One can make several HttpClient instances share the same
connection manager, though, (which is not recommended).

Oleg


> Christine
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message