The fact to have felix.fileinstall.file property and use it is in
ConfigAdmin. But the monitoring of the etc folder is in Karaf. If you
take a look in etc/config.properties, you will see:
#
# Configuration FileMonitor properties
#
felix.fileinstall.enableConfigSave = true
felix.fileinstall.dir = ${karaf.base}/etc
felix.fileinstall.filter = .*\\.cfg
felix.fileinstall.poll = 1000
felix.fileinstall.noInitialDelay = true
felix.fileinstall.log.level = 3
That's the monitoring/polling on the etc folder.
More over, the creation of the cfg file when you use ConfigAdmin
(config:* commands for instance) without felix.fileinstall.dir is
directly in Karaf.
Regards
JB
On 08/21/2014 05:13 PM, Christian Schneider wrote:
Hi JB,
I always thought that this was already built into config admin.
is the code that takes car of this part of the karaf config module?
Christian
Am 21.08.2014 15:01, schrieb Jean-Baptiste Onofré:
Hi Christian,
actually, ConfigAdmin itself doesn't directly use FileInstall: the
monitoring of the etc folder is a Karaf feature, no a ConfigAdmin
feature.
Regards
JB
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com