You can install the feature using: feature:repo-add cxf-dosgi 1.8.0 If you want to try the new on it is: feature:repo-add cxf-dosgi 2.0-SNAPSHOT
The new version allows to set providers as intents. You can also publish serveral providers as one intent using the IntentProvider interface or simple by publishing a Callable<List<Object>>. It would be great if you could test the new version on master and give some feedback. Christian 2016-07-17 21:28 GMT+02:00 Benson Margulies <[email protected]>: > OK. Christian, I'm also stumped as to where the Karaf feature.xml file > for dOSGI can be found that I can use with Karaf 4. > > On Sun, Jul 17, 2016 at 3:23 PM, Sergey Beryozkin <[email protected]> > wrote: > > Hi Benson > > > > Christian has spent the time and worked on the code which supports > > registering the providers via DOSGI intents. I haven't looked yet at the > > details, check the rs provider source on trunk, Christian can help next > week > > too > > > > Cheers, Sergey > > > > On 17/07/16 18:41, Benson Margulies wrote: > >> > >> Well, in fact, I did. I'm still puzzled. > >> > >> My services are DS components, created with annotations. One of my > >> providers I really have to instantiate in code to get the correct > >> Jackson object mapper into place. So putting a class name into a > >> property won't serve. Since SCR is doing my registering for me, I > >> don't know how to get a dynamically created value into a properties of > >> the DS service. I'm off to try to hunt that down. > >> > >> On Sun, Jul 17, 2016 at 11:35 AM, Benson Margulies < > [email protected]> > >> wrote: > >>> > >>> Oh, oops, I didn't scroll down far enough. > >>> > >>> On Sun, Jul 17, 2016 at 11:31 AM, Benson Margulies < > [email protected]> > >>> wrote: > >>>> > >>>> 1. How would I map a set of providers to properties on the Component? > >>>> > >>>> sf.setProvider(new > JacksonJaxbJsonProvider(JsonUtils.getObjectMapper(), > >>>> JacksonJaxbJsonProvider.DEFAULT_ANNOTATIONS)); > >>>> sf.setProvider(new JsonExceptionMapper()); > >>>> sf.setProvider(new WebApplicationExceptionMapper()); > >>>> sf.setProvider(new GenericExceptionMapper()); > >>>> > >>>> 2. I have one service that is launched with > >>>> > >>>> sf.setServiceClass(ProfileServiceResource.class); > >>>> > >>>> (That is, a new object for each request.) > >>>> > >>>> Can this be done with some sort of DS factory, or would I want to > >>>> refactor to get rid of it? > > > > > > > > -- > > Sergey Beryozkin > > > > Talend Community Coders > > http://coders.talend.com/ > -- -- Christian Schneider http://www.liquid-reality.de <https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.liquid-reality.de> Open Source Architect http://www.talend.com <https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46&URL=http%3a%2f%2fwww.talend.com>
