Previous Topic

Next Topic

Book Contents

Book Index

System Properties

The OSGi Service Component Runtime Bundle uses the following system properties:

System Property

Type

Default Value

Description

mbs.component.debug

boolean

false

Turns on/off debugging of SCR.

mbs.component.print

boolean

false

Specifies that logged entries should be printed to the framework runtime console.

mbs.component.idle_timeout

int

1000

Specifies the time in milliseconds after which the SCR working thread will be terminated if the SCR has no operations to perform.

mbs.component.dbstore

boolean

true

Enables storing the parsed XML documents of the component descriptions in the system database.

mbs.component.perf

boolean

false

Enables generating and printing logs about the time performance of the operations executed by the SCR.

mbs.component.block_timeout

int

30000

Specifies the maximum time in milliseconds, which is allowed to a user component's activate or bind method to take. If the method invocation has not finished, a new dispatcher thread will be launched to process the pending work of SCR.

mbs.scr.dontDisposeInstances

boolean

true

Turns on/off disposing of component instances that are no longer used.

mbs.component.instantiate_all

boolean

false

If true, all components descriptions that are not component factories will be instantiated regardless whether they are immediate or not.

mbs.scr.waitTimeOnBlock

int

10000

Specifies the timeout in milliseconds for the building thread to complete the building/disposal of service components.

mbs.scr.mapBinding.NS10

boolean

true

If true, binding is performed according to the OSGi Specification Release 4.3, else – according to the OSGi Specification Release 5.0.

mbs.scr.skipComponentActivationFor

String[]

0

Contains bundle symbolic names of the bundles for which SCR must not activate their components in the format <bsn1>[;<ver1>],<bsn2> [;ver2],...,<bsnn> [;vern]

mbs.scr.includeFactoryPids

boolean

false

If set to 'true', adds a service.factoryPid property to factory components upon invocation of the ServiceComponent.getProperties() method.

mbs.scr.fixComponentPropertyTypeArrays

boolean

false

If a component property with a complex type is given, signifies whether its fields, which are arrays, get initialized with:

  • an empty array when 'true'
  • null when 'false'

mbs.scr.configLocation.ignored

boolean

false

If set to 'true', the configurations which are related to the components no longer have to have the component bundles' locations.