Re: CXF JAX-RS servers/providers and OSGi whiteboard

2017-12-19 Thread matteo
Thank you for your quick reply! Just one more question. If I got right what you said, in my typical example: rour suggestion would be to do something like this: It is not clear to me how I should behave with the OAuthContextProvider, SearchContextProvider or MultipartProvider. I suspect I

Re: CXF JAX-RS servers/providers and OSGi whiteboard

2017-12-19 Thread Sergey Beryozkin
Hi Carlos On 19/12/17 11:01, Carlos Sierra Andrés wrote: h... this is a very legit question. I had already answered as if François was meaning JAX-RS Features. If you don't mean JAX-RS features, but CXF or Karaf features, then I think there is no way to register them, yet. So far we are

Re: CXF JAX-RS servers/providers and OSGi whiteboard

2017-12-19 Thread Francois Papon
Thanks Carlos, I will take a look. François Le 19/12/2017 à 14:58, Carlos Sierra Andrés a écrit : > Hi François, > > yes... it should.  > > Here you can find a test in which we register a Feature. The spec also > mandates in the latest draft that the properties used to register the >

Re: CXF JAX-RS servers/providers and OSGi whiteboard

2017-12-19 Thread Carlos Sierra Andrés
h... this is a very legit question. I had already answered as if François was meaning JAX-RS Features. If you don't mean JAX-RS features, but CXF or Karaf features, then I think there is no way to register them, yet. So far we are focusing on implementing the spec but I guess we won't

Re: CXF JAX-RS servers/providers and OSGi whiteboard

2017-12-19 Thread Francois Papon
I mean CXF-features like org.apache.cxf.jaxrs.swagger.Swagger2Feature Le 19/12/2017 à 14:54, Jean-Baptiste Onofré a écrit : > What do you mean by "features" ? Karaf or CXF features ? > > Regards > JB > > On 12/19/2017 11:51 AM, Francois Papon wrote: >> Hi Carlos, >> >> I'm interesting by this

Re: CXF JAX-RS servers/providers and OSGi whiteboard

2017-12-19 Thread Carlos Sierra Andrés
Hi François, yes... it should.  Here you can find a test in which we register a Feature. The spec also mandates in the latest draft that the properties used to register the application be present in the configurables.

Re: CXF JAX-RS servers/providers and OSGi whiteboard

2017-12-19 Thread Jean-Baptiste Onofré
What do you mean by "features" ? Karaf or CXF features ? Regards JB On 12/19/2017 11:51 AM, Francois Papon wrote: Hi Carlos, I'm interesting by this and I would like to know if this is the same approach for features ? (Swagger feature for example) Thanks, François Le 19/12/2017 à 14:36,

Re: CXF JAX-RS servers/providers and OSGi whiteboard

2017-12-19 Thread Francois Papon
Hi Carlos, I'm interesting by this and I would like to know if this is the same approach for features ? (Swagger feature for example) Thanks, François Le 19/12/2017 à 14:36, Carlos Sierra Andrés a écrit : > Hello Matteo, > > you can just publish the filters as OSGi services advertising the >

Re: CXF JAX-RS servers/providers and OSGi whiteboard

2017-12-19 Thread Carlos Sierra Andrés
Hello Matteo, you can just publish the filters as OSGi services advertising the interfaces you want them to be registered by. I am not aware of any specific example for CXF services, but in the tests you can see how "extensions" can be registered:

CXF JAX-RS servers/providers and OSGi whiteboard

2017-12-19 Thread matteo
Hello, In OSGi I usually configure my CXF REST endpoints using blueprints as follows: I would like to avoid blueprint-based configuration and switch to declarative services. I saw an example on how to do this with OSGi whiteboard: