Re: On another topic: Creating services programatically again

2018-02-23 Thread David Jencks
; Thanks for the help. I appreciate the input. > > Regards, > > Scott > > -Original Message- > From: David Jencks [mailto:david.a.jen...@gmail.com] > Sent: Friday, February 23, 2018 5:14 PM > To: user@karaf.apache.org > Subject: Re: On another topic: Creating s

RE: On another topic: Creating services programatically again

2018-02-23 Thread Leschke, Scott
- From: David Jencks [mailto:david.a.jen...@gmail.com] Sent: Friday, February 23, 2018 5:14 PM To: user@karaf.apache.org Subject: Re: On another topic: Creating services programatically again Nothing R7 is released yet, the specs aren’t final, so I doubt very much that karaf implements any

Re: On another topic: Creating services programatically again

2018-02-23 Thread David Jencks
e preferred approach. > > Scott > > -Original Message- > From: Leschke, Scott [mailto:slesc...@medline.com] > Sent: Friday, February 23, 2018 3:14 PM > To: user@karaf.apache.org > Subject: RE: On another topic: Creating services programatically again > > I sho

RE: On another topic: Creating services programatically again

2018-02-23 Thread Leschke, Scott
ConfigurationAdmin.createFactoryConfiguration would be the preferred approach. Scott -Original Message- From: Leschke, Scott [mailto:slesc...@medline.com] Sent: Friday, February 23, 2018 3:14 PM To: user@karaf.apache.org Subject: RE: On another topic: Creating services programatically again I should

RE: On another topic: Creating services programatically again

2018-02-23 Thread Leschke, Scott
of your choosing but that doesn't seem to be the case. Scott -Original Message- From: David Jencks [mailto:david.a.jen...@gmail.com] Sent: Friday, February 23, 2018 2:57 PM To: user@karaf.apache.org Subject: Re: On another topic: Creating services programatically again I’m not sure what all

Re: On another topic: Creating services programatically again

2018-02-23 Thread David Jencks
n to .cfg. I >> need to do this so that I can save the configurations across Karaf installs. >> My app hierarchy resides outside of the Karaf installation so this works >> well. Unfortunately, the code I show below gives me two separate service >> instances. >> >&

Re: On another topic: Creating services programatically again

2018-02-23 Thread David Jencks
Friday, February 23, 2018 11:03 AM > To: user@karaf.apache.org > Subject: Re: On another topic: Creating services programatically again > > Rather than using a relatively low level api such as ManagedServiceFactory > I’d suggest considering a ds component with configuration required and

RE: On another topic: Creating services programatically again

2018-02-23 Thread Leschke, Scott
Could you point me to the > Decanter code as a reference? > > Thanks, > > Scott > > -Original Message- > From: Jean-Baptiste Onofré [mailto:j...@nanthrax.net] > Sent: Thursday, February 22, 2018 9:53 PM > To: user@karaf.apache.org > Subject: Re: On anothe

Re: On another topic: Creating services programatically again

2018-02-23 Thread David Jencks
ld you point me to the > Decanter code as a reference? > > Thanks, > > Scott > > -Original Message- > From: Jean-Baptiste Onofré [mailto:j...@nanthrax.net] > Sent: Thursday, February 22, 2018 9:53 PM > To: user@karaf.apache.org > Subject: Re: On another topic: Creat

RE: On another topic: Creating services programatically again

2018-02-23 Thread Leschke, Scott
> > Scott > > -Original Message- > From: Jean-Baptiste Onofré [mailto:j...@nanthrax.net] > Sent: Thursday, February 22, 2018 9:38 PM > To: user@karaf.apache.org > Subject: Re: On another topic: Creating services programatically again > > Hi Scott, > &

Re: On another topic: Creating services programatically again

2018-02-22 Thread Jean-Baptiste Onofré
ssage- > From: Jean-Baptiste Onofré [mailto:j...@nanthrax.net] > Sent: Thursday, February 22, 2018 9:38 PM > To: user@karaf.apache.org > Subject: Re: On another topic: Creating services programatically again > > Hi Scott, > > why don't use a managed service factory ? > &g

RE: On another topic: Creating services programatically again

2018-02-22 Thread Leschke, Scott
value without actually having a service instance or hard-coding them? Scott -Original Message- From: Jean-Baptiste Onofré [mailto:j...@nanthrax.net] Sent: Thursday, February 22, 2018 9:38 PM To: user@karaf.apache.org Subject: Re: On another topic: Creating services programatically again

Re: On another topic: Creating services programatically again

2018-02-22 Thread Jean-Baptiste Onofré
Hi Scott, why don't use a managed service factory ? It would automatically create a service based on a cfg. So for your user, he creates the cfg file, and then, automatically, the corresponding service is created. Thoughts ? Regards JB On 02/22/2018 09:18 PM, Leschke, Scott wrote: > As I