p.s. Thank you, those emails rescued me from the confused state I landed in reading the fileinstall code.
On Mon, Nov 21, 2016 at 2:09 PM, Benson Margulies <bimargul...@gmail.com> wrote: > I am really only concerned with fileinstall as a model/example of what > I am trying to do. Let me try again and nearly eliminate all evidence > of it from my question. > > Step 1: Code in CXF does: > > Properties servProps = new Properties(); > servProps.put(Constants.SERVICE_PID, FACTORY_PID); > reg = context.registerService(ManagedServiceFactory.class.getName(), > this, servProps); > > That FACTORY_PID is org.apache.cxf.http.jetty. > > Step 2: > > I call createFactoryConfiguration on "org.apache.cxf.http.jetty" with > some properties. > > Step 3: > > I decide that I have changed my mind, and I want to adjust one of the values. > > So I think I need to do what Mr. Ward had explained and use a property > to identify my particular configuration. > > I think that the 'magic property' in the fileinstall case is probably > the property they use for their file name, and that's why I missed it, > but I don't need to deal with that. > > > > > > On Mon, Nov 21, 2016 at 1:49 PM, BJ Hargrave <hargr...@us.ibm.com> wrote: >> I think you need to ask this in a felix list since you are asking about how >> felix fileinstall works. >> >> -- >> >> BJ Hargrave >> Senior Technical Staff Member, IBM // office: +1 386 848 1781 >> OSGi Fellow and CTO of the OSGi Alliance // mobile: +1 386 848 3788 >> hargr...@us.ibm.com >> >> >> >> ----- Original message ----- >> From: Benson Margulies <bimargul...@gmail.com> >> Sent by: osgi-dev-boun...@mail.osgi.org >> To: OSGi Developer Mail List <osgi-dev@mail.osgi.org> >> Cc: >> Subject: [osgi-dev] OSGi factory pids and configuration admin >> Date: Mon, Nov 21, 2016 1:34 PM >> >> Given a factory pid of a.b.c, and a pid of q, I am a little >> disoriented about how to manage some properties. >> >> Felix fileinstall parses a.b.c-q as 'pid = a.b.c', factoryPid = 'q'. >> It calls createFactoryConfiguration for 'a.b.c', and ignores the q. >> >> The 'updated' method on the service is called on a pid like >> 'a.b.c.UNIQUE-STRING'. >> >> Do I need to add something to the properties so that the pid remains >> 'a.b.c-q'? >> >> As it is, I'm failing to use a second call to configuration admin to >> update one of the properties. >> _______________________________________________ >> OSGi Developer Mail List >> osgi-dev@mail.osgi.org >> https://mail.osgi.org/mailman/listinfo/osgi-dev >> >> >> >> >> >> _______________________________________________ >> OSGi Developer Mail List >> osgi-dev@mail.osgi.org >> https://mail.osgi.org/mailman/listinfo/osgi-dev _______________________________________________ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev