The standard way to obtain the configuration is to registered a
ManagedService object in the OSGi registry.
ConfigAdmin will call it when published, and whenever the configuration is
changed.  You don't have to restart your bundle.

2017-07-14 10:39 GMT+02:00 Dominik Marciniszyn <
[email protected]>:

> Hi,
> I have defined map based on values from my .cfg file on Karaf. In java code
> I use ConfigurationAdmin and Configuration to fill the map. I would like to
> update my map when .cfg file was modified but without restaring bundle. Is
> it possible to do?
>
> Thank you for any advice,
> Dominik Marciniszyn
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.
> com/Update-the-map-on-change-cfg-file-on-Karaf-tp4051008.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>



-- 
------------------------
Guillaume Nodet

Reply via email to