Re: [SCR] Obtaining component configuration

2015-09-18 Thread Felix Meschberger
Hi David > Am 17.09.2015 um 11:29 schrieb David Leangen : > > > Hi! > > Using Felix SCR… I think this is related to Felix Configuration Admin, though > > I am trying to obtain a component’s properties object by: > > ConfigurationAdmin cm = {obtain the cm} >

Re: [SCR] Obtaining component configuration

2015-09-18 Thread David Leangen
Hi Felix, Thank you very much for this! [ I regret that in my attempt to try to figure this out quickly I just double-posted on bndtools… Bad me! :-( ] So, you are confirming: * The first time getProperties() is called, it returns null (i.e. this is expected behaviour) * After update,

Re: [SCR] Obtaining component configuration

2015-09-18 Thread David Leangen
Hi Felix, Thanks for the reply. More info below. >> So then, what is the right way to obtain the existing properties of a >> component (other than the ones I just set)? I was not successful when >> digging around the spec to find the answer. > > But, as BJ on bndtools notes, if you are just

Re: [SCR] Obtaining component configuration

2015-09-18 Thread Felix Meschberger
Hi David > Am 18.09.2015 um 08:34 schrieb David Leangen : > > > Hi Felix, > > Thank you very much for this! > > [ I regret that in my attempt to try to figure this out quickly I just > double-posted on bndtools… Bad me! :-( ] > > So, you are confirming: > * The first

[SCR] Obtaining component configuration

2015-09-17 Thread David Leangen
Hi! Using Felix SCR... I am trying to obtain a component’s properties object by: ConfigurationAdmin cm = {obtain the cm} Configuration componentConfig = cm.getConfiguration( componentPid ); componentConfig.getProperties(); I can confirm that I am getting the correct Configuration object