Hello Enrique,

> A wrapper POM creating an OSGi bundle of the 3rd-party library was committed 
> on rev 510316.
> 
> URL: http://svn.apache.org/viewvc?view=rev&rev=510316
> 
>> commons-httpclient 3.0.1 wrapping
>> ---------------------------------
>>
>>                 Key: FELIX-212
>>                 URL: https://issues.apache.org/jira/browse/FELIX-212
>>
>> Create an OSGi bundle for the commons-httpclient 3.0.1 jar.
> 

I just wanted to point out that in HttpClient 3 (and 2), the class
MultiThreadedHttpConnectionManager starts background threads when used.
If I am not mistaken, the OSGi bundle mechanism expects bundles to
clean up when they are stopped. In order to clean up, you would need
a bundle activator that calls

      MultiThreadedHttpConnectionManager.shutdownAll();

when the bundle is stopped.

http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/MultiThreadedHttpConnectionManager.html#shutdownAll()

cheers,
  Roland

Reply via email to