I have several OSGi bundles, each of which can be updated from an OSGi Bundle Repository. When I start my OSGi framework (Apache Felix), I want the first bundle to start and check for updates for all installed bundles. If updates are available, it should update each of them (including itself) then continue starting (or possibly shutdown, and the OS will restart the app).
How is this best done in an OSGi compliant manner?
How should the first bundle update itself? Can it update itself while it is starting?