> I think that B (the extender) must register the Servlet service using its > own BundleContext, since it is the bundle that actually creates the > Servlet objects.
+1 For DS the situation is different: the SCR knows nothing about the services it is registering on behalf of other bundles, it just regurgitates what it finds in the XML. In the webby proxy thingy model it is precisely the extender which knows about servlets and who knows maybe MVC and REST frameworks and more besides, while the extendee is just a passive victim. That's why in the former case it make sense for the extender to masquerade as the extendee and in the latter it doesn't. _______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
