On Wed, 2008-10-15 at 10:40 -0700, Mohit Anchlia wrote:
> >> Just one. One can make several HttpClient instances share the same
> >> connection manager, though, (which is not recommended).
> 
> Why is multiple HttpClients and one connection manager not
> recommended? I tried using one HttpClient in servlet accross all the
> threads but started getting errors. It looks like I can't use one
> instance of HttpClient shared accross multiple threads at the same
> time
> 

Yes, you can. HttpClient is threading safe as long as it is used with a
threading safe connection manager.

Oleg


> On Wed, Oct 15, 2008 at 10:34 AM, Christine <[EMAIL PROTECTED]> wrote:
> > On Wed, 2008-10-15 at 19:08 +0200, Oleg Kalnichevski wrote:
> >
> >> Just one. One can make several HttpClient instances share the same
> >> connection manager, though, (which is not recommended).
> >
> > Got it. Thanks!
> >
> > Christine
> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> > --
> > dagdag is just a two character rotation of byebye
> > www.christine.nl
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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

Reply via email to