Search code examples
osgiaemapache-felixsling

Why Sling Configuration has two different formats


in Sling, configuration can be deployed either via a sling:osgiConfig node and via a nt:file node having the configuration values.
When i make some changes in Felix Console in some configuration deployed via sling:osgiConfig node, it gets converted to nt:file format.

Why there are these two different formats for configurations in Sling. is there any significant difference between the two?


Solution

  • I'd say this is mostly for historical reasons, in some cases it's more convenient to provide configurations as hierarchical resources (sling:OsgiConfig) and if the config is coming from a filesystem for example, files are more convenient.