Hallo,

I use a lot of service dependencies between my bundles with the service 
interfaces in separate bundles.


There is a large issue with this approach:
When a lot of bundles have been installed and removed, it is difficult to determine which bundles with only service interfaces are still used. This is because it is possible to determine, at runtime, the service dependencies between the bundles, but not the package dependencies.


My current solution for this problem is: remove all bundles with only service interface packages. The framework will continue to make those packages available to all bundles importing those service interface packages until the framework is restarted or until the org.osgi.service.packageadmin.PackageAdmin.refreshPackages method is called.


In my first tests, this solution seems to work. But, isn't there a better (cleaner) solution then uninstalling them all and counting on the framework to keep them available?


Thanks for your time,

Bart

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to