Hello Alex,

ALEX HYDE wrote:
> I've misunderstood what is being said here. If you are
> only creating one client then surely you are not
> pooling?

Why not? A single HttpClient is perfectly capable of supporting
multiple connections from different threads, provided that it
is created on top of a thread safe connection manager such as
the MultiThreadedConnectionManager.

> Also, if you only have one connection and then that
> gets broken do you have to manage this or is this
> managed under the covers?

The connection manager takes care of it. Just make sure you do
release the connection, whether there is a problem or not. The
call to method.releaseConnection() is best put into a finally{}
block.

> I guess I'm asking whether
> an httpclient actually equates toa  phyical
> connection? 

No, it doesn't. An HttpClient equates to a single application,
which can perform multiple requests over multiple connections,
consecutively or in parallel from multiple threads.

cheers,
  Roland

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to