Re: configuration admin files with property references in the values: how's it done?

2016-09-16 Thread Benson Margulies
Never mind, I worked out for myself that fileinstall does the job. On Fri, Sep 16, 2016 at 11:17 AM, Benson Margulies wrote: > I've been asked to try an experiment in moving some of the code we run > in Karaf into a minimal Felix container deployment. I've run into one >

configuration admin files with property references in the values: how's it done?

2016-09-16 Thread Benson Margulies
I've been asked to try an experiment in moving some of the code we run in Karaf into a minimal Felix container deployment. I've run into one snag: Some of my .cfg files in Karaf take advantage of writing values that contain system property references, like ${karaf.etc}/something/something. I had

RE: Configuration Admin

2016-09-14 Thread Leschke, Scott
be back... Thanks, Scott From: David Jencks [mailto:david.a.jen...@gmail.com] Sent: Wednesday, September 14, 2016 2:52 PM To: user@karaf.apache.org Subject: Re: Configuration Admin Then someone should fix the metatype….. david jencks On Sep 14, 2016, at 12:39 PM, Guillaume Nodet <

Re: Configuration Admin

2016-09-14 Thread David Jencks
explicit Managed Service Factory”. > > So the filter to ca.listConfigurations would look like > > (&(service.factoryPid=)(felix.fileinstall.filename=)) > > david jencks > > > > Scott > > > > From: David Jencks [mailto:david.a.jen...@gmail.com >

Re: Configuration Admin

2016-09-14 Thread Guillaume Nodet
gt; > david jencks > > > > Scott > > > > From: David Jencks [mailto:david.a.jen...@gmail.com] > > Sent: Wednesday, September 14, 2016 1:35 PM > > To: user@karaf.apache.org > > Subject: Re: Configuration Admin > > > > I doubt I understand your

Re: Configuration Admin

2016-09-14 Thread David Jencks
ember 14, 2016 1:35 PM > To: user@karaf.apache.org > Subject: Re: Configuration Admin > > I doubt I understand your question as written, as fileinstall has a pid > rather than a factory pid you can only have one configuration for it. > > Assuming you actually want to confi

RE: Configuration Admin

2016-09-14 Thread Leschke, Scott
augmenting the configuration with ID information or using a more explicit Managed Service Factory. Is that correct? Scott From: David Jencks [mailto:david.a.jen...@gmail.com] Sent: Wednesday, September 14, 2016 1:35 PM To: user@karaf.apache.org Subject: Re: Configuration Admin I doubt I

Re: Configuration Admin

2016-09-14 Thread David Jencks
I doubt I understand your question as written, as fileinstall has a pid rather than a factory pid you can only have one configuration for it. Assuming you actually want to configure multiple configurations for a given factory pid, - I’d advise you to write a management agent that uses the

Configuration Admin

2016-09-14 Thread Leschke, Scott
Not specifically a Karaf question but I'll start here. If I would like to be able to modify the component instance configurations (created from a factory) programmatically, but from the CA api, it's unclear to me how I associate a configuration record to its corresponding instance? As an

Setup a List property with Blueprint and Configuration Admin ?

2011-05-02 Thread Cristiano Gavião
Hi, I'm setting up my service using blueprint and CM. I could make it work properly for single properties. But now I can't figure out how to configure CM for a property that is a ListString. cm:property-placeholder persistent-id=myservice.osgi update-strategy=reload

Re: Setup a List property with Blueprint and Configuration Admin ?

2011-05-02 Thread Cristiano Gavião
Hi Johan, Thanks, but I don't think your way could help me in my case because I don't think that I could dynamically increase my list of strings that comes from a config file on ${karaf}/etc. cheers Cristiano On 02/05/11 19:04, Johan Edstrom wrote: property name=baseUrls list

Re: Setup a List property with Blueprint and Configuration Admin ?

2011-05-02 Thread Andreas Pieber
Hey Cristiano, TBH I've never tried this with blueprint but since blueprint and springdm are almost equal the following should work if you simply correct the namespace of the elements. To achive what you want I would suggest to read chapter 10.1.2.1. Configuration Admin Runtime Updates