On Wed, Jan 29, 2014 at 10:58 AM, Chetan Mehrotra <[email protected]> wrote: > ...So can we go for #2?...
Which is adding custom bundle header 'x-sling-startup-order' that our bootstrap installer takes into account? But how is that handled? Set the bundle's OSGi start level to a different value than 1? Otherwise, if it's just the bootstrap installer that handles this header, on the next startup the bundles will again start in an unpredictable order, if they have the same start level. Changing the start level is also problematic when you upgrade an existing system, as in this case AFAIK we don't reset the start level for bundles that are just updated. So I think if we want this to be robust we need a mechanism that: a) Allows for setting another start level than 1 for some bootstrap bundles b) Adjusts the start level of existing such bundles when they are updated by a future Sling launchpad -Bertrand
