Osgi Equinox enable component from external bundle
问题 Given this scenario: Bundle A: component 1A (enabled:false) Bundle B: component 2B How can i enable component 1A from Bundle B or Component 2B? I've tried to do it by using componentContext, dsContext.enableComponent("1A"); but it seems to work only with services in the same bundle. 回答1: Your using a mechanism that is intended for management and it seems you want to use it on application level. Declarative services should be enabled/disabled through their dependencies, or through a domain