GernotBelger commented on PR #314:
URL: https://github.com/apache/felix-dev/pull/314#issuecomment-2129571873

   > I haven't double checked, but if there are two sources for the same 
org.osgi.service.servlet.* packages then I suspect there could be some 
classloading boundary troubles when those duplicated packages get resolved to 
different bundles?
   
   Just stumbled over this comment and want to add: it's not only potential 
classloader troubles. If you have another source of these packages, what will 
happen (I encountered it and took me quite some time to understand what 
happens), is, that the service-tracking might not resolve any more.
   Reason beeing is, that you are using the default ServiceTracker#open(false), 
which then will only resolve services that are directly wired to the 
corresponding interfaces from the right bundle. So if you add a service that is 
wired to the other bundle, the service will not be considered a valid source 
for the service tracker.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@felix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to