Re: Config feature element used as default

2018-08-28 Thread Jean-Baptiste Onofré
Hi Matteo,

by default, the existing config is not overriden. So, the config in etc
are taken, whatever is contain in the feature.

However, it can happen in two steps: first loaded from the feature and
after reloaded from the cfg file. So, your bundle has to react correctly
to config updates.

Regards
JB

On 28/08/2018 10:17, Matteo Rulli wrote:
> Hello,
> I would like to know what is the expected behavior of the  name="the.config.pid"> feature element when the the.config.pid.cfg file
> already exists in the karaf /etc folder. What properties are injected in
> the service? Those in the file or those in the  name="the.config.pid”> feature element?
> 
> I'm asking this because I would like to use the content of the  name="the.config.pid”> element as a default value only when the corresp
> file in etc folder is missing. When the file is already present I’d like
> to get a similar behaviour with respect  finalname="${karaf.etc}/the.config.pid.cfg" override="false">
> 
> Thank you,
> Matteo

-- 
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com


Config feature element used as default

2018-08-28 Thread Matteo Rulli
Hello,
I would like to know what is the expected behavior of the  feature element when the the.config.pid.cfg file already 
exists in the karaf /etc folder. What properties are injected in the service? 
Those in the file or those in the  element as a default value only when the corresp file in 
etc folder is missing. When the file is already present I’d like to get a 
similar behaviour with respect 

Thank you,
Matteo