I am working on server-allinone in Eclipse. I would like to make some custom bundles part of the basic bundles running on the Target. Is there a way to do so from the configurations?
1 Answers
Conceptually, what is running on the target, consists of three logical parts:
- The actual OSGi framework implementation (Apache Felix, Equinox, ...).
- The "management agent" that Apache ACE provides.
- All the bundles that make up your application.
Anything that is part of #3 can be easily installed, updated and uninstalled by ACE. ACE also has a mechanism that allows the management agent (#2) to update itself (which obviously is a bit of a special case). That is where ACE stops, it has not built-in mechanism to update #1, even though there has been some talk about providing a mechanism for that as well. You have to draw the line at some point though, as beyond that you could also ask yourself who is going to update the JVM, the OS and the bootloader.
Anyway, back to your question. If you want to make those custom bundles part of the basic bundles that are running on the target, conceptually they become part of the framework and you have no way in ACE to ever update them. If that is fine, just create a custom launcher that, besides installing the management agent, also installs these bundles. If that is not fine you need to add those bundles to the actual management agent bundle so they become part of that. That way you can update them as part of that bundle. However, I would like to challenge you and ask you why these bundles cannot be part of the application? Is there a special reason they must be pre-installed (updatable or not)?

- 3,313
- 1
- 15
- 23
-
Thank you for your reply. I want the bundles to be pre-installed to provide scalability and composition functionalities for applications in a cluster of targets. From your explanation above, somehow it sounds to be framework dependent. So I think having a custom launcher sounds a better approach.(with the update constraint it means I will have to do it manually right?) – Bleza Aug 22 '15 at 03:59