Hello,

Is there any way for an implementation provider to detect when a
contribution is updated/removed from an SCA domain or when a domain is
closed?

The OSGi implementation provider for SCA allows an OSGi bundle to be shared
across multiple SCA components. The bundles need to be uninstalled at some
point, and since only the implementation provider knows about its installed
bundles, it needs to uninstall them when the contribution is removed from
the SCA domain and also before any updates to the contribution. The bundle
cannot be uninstalled when the component is deactivated since there could be
other components which are using the bundle. Unfortunately OSGi does not
provide reference counting for its bundles, so the implementation provider
for SCA has to figure out when it is safe to uninstall the bundles that it
installed. Any suggestions on how this could be done are appreciated.

Thank you...

Regards,

Rajini

Reply via email to