Previous Topic

Next Topic

Book Contents

Book Index

Rebooting the runtime after changes in a startup bundles list

The framework can be configured for a clean startup in case changes are made to a startup bundles list file, for example if bundles are added to startup bundles list file or the order of bundles is changed. Use the system properties mbs.storage.deleteOnBundlesChange and mbs.storage.deleteSubDirsOnly to configure the framework behavior.

If there is a change in one or more of the startup bundles list files and a storage exists these changes will be ignored by default. In order to make the framework rescan the startup bundles list files each time it is started the system property mbs.storage.updateOnBundlesChange must be set to "true". In these cases the framework applies the changes in the startup bundles list according to the following rules:

  1. If a bundle is removed from the list, it will be uninstalled as part of the framework startup sequence.
  2. If a bundle's position in the list is changed, the framework will adjust the starting order of the initial bundles set accordingly.
  3. If a new bundle is added to the startup bundles list, it will be installed as a normal bundle but the starting order of the bundles will be changed so that the new bundle is started based on its position in boot.ini (instead of its bundle ID).