On 07/05/2004 10.38, Kalnichevski, Oleg wrote:

Andrea,

New HttpClient 3.0 API has not been properly documented yet (documentation and test case coverage will become a top priority right after the 3.0-alpha1 release). The idle connection management with the multi-threaded connection manager does take a little bit of explaining. Per default the connection manager does not attempt to close idle connections as before. It simply provides the user with the means to handle idle connections the way the user sees fit. There's a new method in the HttpConnectionManager interface called #closeIdleConnections(long) intended to advise the connection manager to drop those connections that have been idle for the specified period of time. This method can be invoked either from the main communication thread during a period of inactivity or from a dedicated monitor thread on a regular basis. The helper class IdleConnectionTimeoutThread can be used to easily set up a simple idle connection monitor. The reason for not running a dedicated idle con
nection monitor per default is to keep HttpClient usable in an EJB container. The EJB spec requires that enterprise beans do no explicit thread management.

Give the new features another shot. They may still prove not that bad


I just had the first cursory look at your commons-pool based implementation. It looks very promising but the code currently requires a few tweaks to be compatible with 3.0 API.


Oleg

Well, i thought the patch was for 2.0 branch, not 3.0!!! (i have to admit that i gave only a fast look at the bugzilla reports on the list, 'cause i had a lot of work to do.. ;-) )
In fact i developed the code from the official 2.0 code!


However, i'll try to download the source from cvs, and compile it.. i think that the nightly builds are from 2.0 branch, or not?

By the way, if you need further information about my code, feel free to ask

Cheers
Andrea
Errore Apertura DB

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



Reply via email to