How can I restore OSGi configurations stored in JCR ?
The behaviour and method to restore configuration depend on each configuration type, which identifies where the configuration is coming from. Configuration type is one :
# Do not edit - Configuration file provided by module, any change will be lost
# Default configuration
To restore OSGi configuration :
config:restore
to restore configurations stored in the /module-management/configs
node. This command optionnaly takes the types of configurations to restore - by default only user and modules default configuration are restored, but the command also allow you to restore system or module configurations as they are stored in the JCR.[persisted-configurations].dorestore
([persisted-configurations] is not a placeholder, it is the actual name to use for the marker file). Configurations will be restored at startup. Only user and modules default configuration are restoredThe processing node will automatically store configurations when a change is detected. This can also be manually triggered on any node by calling config:store
command. This can be useful if for any reason the configurations are not correctly synchronized between the nodes.