Hello Florent,

> As I can't create threads directly in the App server, I can't use the
> MultiThreadedHttpConnectionManager...

MTHCM is not really multithreaded, it is just thread-safe for use
in multithreaded applications. Unfortunately though, there is one
background thread for connection GC. You could copy MTHCM and
remove the connection GC mechanism. It's not easy though, the
code is rather complex.

> Can I use as many HttpClient
> instances as the number of
> threads I have (about 5000) ?

You can, if you can live with 5000 connections being open
at the same time. Just make _very_ sure that you close
the connections (SimpleHttpConnectionManager.shutdown,
or create with the auto-close flag) once you don't need
them anymore.

hope that helps,
  Roland


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

Reply via email to