Previous Topic

Next Topic

Book Contents

Book Index

System Properties

The OSGi Configuration Bundle uses the following system properties:

System Property

Type

Default Value

Description

mbs.config.timeout

int

10

Refers to the period in seconds the Config Bundle will wait for a Managed Service (Factory) to process its configuration. Configuration Manager update events can hang while calling a Managed Service or Managed Service Factory updated method. Specifies a time period in seconds during which CM Event Thread must return from an updated method. After this period passes, the Config Bundle stops the running thread and creates a new one to process the events. The minimum allowed value is 1 second.

mbs.config.deleteConfigsOnUninstall

boolean

false

If true, when a bundle is uninstalled the Configuration Manager will delete the configurations stored for that bundle.

mbs.config.storeDBinDataRootDir

boolean

false

If true, the Configuration Manager will place its persistent database into the root directory of its storage area instead of the storage of the DB Bundle.

This property should be set to true in case you want to have configuration-related persistent data removed upon uninstalling the Config Bundle.

mbs.config.flushDB

boolean

false

If true, each change in the configurations stored by the Configuration Manager will be saved persistently into the database.

mbs.measurements.full

boolean

false

Turns on/off logging the startup time of the Config Bundle's functional parts.

mbs.measurements.bundles

boolean

mbs.config.unboundCheck.disabled

boolean

false

When set to true disables the check, whether there is still an installed bundle for each loaded configuration from the DB. Otherwise by default such a check is made once per every configuration on every framework restart.

It helps to cleanup the config data in the cases, when the framework has not been stopped gracefully right after a bundle with bound configuration was uninstalled.

com.prosyst.mbs.osgi.cm.polling.period

int

-1

On such a period the config folder is checked for added, removed or changed configuration property files. If the value is <= 0, then there are no checks on the folder content i.e. its content is checked only once at startup.

com.prosyst.mbs.osgi.cm.config.root

String

../../../config

The root folder for configuration property files. It may contain different profile folders.

com.prosyst.mbs.osgi.cm.config.profiles

String[]

common

The list with active configuration profiles. Only their configuration property files will be loaded.