Don't let's forget <http://www.osgi.org/Download/HomePage> where you can
download the original service specifications, which are both very clear
about how the service has to behave and completely abstract concerning the
means employed. And as Achim points out, there are a lot of tutorials etc.
about this fundamental OSGi service.

ConfigurationAdmin defines the behaviour of a service which accepts
parcels of name-value pairs (called "configurations") and delivers them to
the destination identified by a PID. The destination must register with
the framework as a ManagedService with that PID; most often the
destination will be a service object (hence the name), so this is a way to
dynamically configure services. One of the features of Cellar is that it
will propagate a configuration created in one node to all the other nodes.

The /etc/config.properties file defines default values for some "framework
properties" which will be set up when Karaf is launched. It provides a way
to statically define properties which are then available to all bundles
via the BundleContext - see
<http://www.osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html#getProperty%28java.lang.String%29>.

Basically the only thing that ConfigurationAdmin and etc/config.properties
have in common is the six letters 'c,o,n,f,i,g' - alas some of the
most-used letters in IT, and the cause of many confusions. But expecting
ConfigurationAdmin to propagate /etc/config.properties files is a bit like
expecting Santa to distribute chocolate ants because he has 'a,n,t' in his
name ...

Greetings,

Chris Gray


> A quick google gave me this result [1], and the first entry is for
> configuration admin service [2].
> As the Fileinstaller does take care of parsing the cfg files and therefore
> transfering those to the config admin service, find the documentation for
> the FileInstaller at [3]
>
>
>
> regards, Achim
>
> [1] -
> https://www.google.de/webhp?sourceid=chrome-instant&ion=1&espv=2&es_th=1&ie=UTF-8#q=felix%20config%20admin%20service
> [2] -
> http://felix.apache.org/documentation/subprojects/apache-felix-config-admin.html
> [3] - http://felix.apache.org/site/apache-felix-file-install.html
>
>
>
> 2014-07-22 18:12 GMT+02:00 asookazian2 <[email protected]>:
>
>> Where is the documentation on how the ConfigAdmin works???
>>
>>
>>
>> --
>> View this message in context:
>> http://karaf.922171.n3.nabble.com/Cellar-for-karaf-3-0-1-active-active-and-failover-clustering-tp4033204p4034378.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> blog <http://notizblog.nierbeck.de/>
>
> Software Architect / Project Manager / Scrum Master
>


Reply via email to