I have an OSGi bundle which is using two services through DS, A and B.
B service is using internally Apache's HttpClient.
My question is, when should I shutdown the HttpClient's ConnectionManager, I tried to do it inside the "unbind" method for service B but it won't work because having the unbind method being called does not mean having the instance destroyed so the same instance could be rebinded and therefore my following requests would fail because ConnectionManager was shutdown.
Hope someone could bring some light on HttpClient usage within OSGi environments.