JAX-RS Whiteboard and CXF Mechanics

2018-12-28 Thread Oliver Schweitzer
Hi, I have an existing REST JAX-RS Application based on CXF mechanics. that is the Resources are lifecycle managed by a programmatically setup JAXRSServerFactoryBean, which itself gets started and stopped by an immediate @Component Now I want to build new entrypoints (and eventually migrate o

Re: JAX-RS Whiteboard and CXF Mechanics

2018-12-28 Thread Christian Schneider
You can try a Application. See https://osgi.org/specification/osgi.cmpn/7.0.0/service.jaxrs.html#service.jaxrs.resource.services @Component(service=Application.class) @JaxrsName("myApp") @JaxrsApplicationBase("foo") public class MyApplication extends Application {} Cheers Christian Am Fr., 28.

Re: JAX-RS Whiteboard and CXF Mechanics

2018-12-28 Thread Jean-Baptiste Onofré
Hi, you can take a look on the Karaf JAXRS Whiteboard sample: https://github.com/apache/karaf/pull/697 I gonna merge it tonight or tomorrow morning. Regards JB On 28/12/2018 16:23, Oliver Schweitzer wrote: > Hi, > > I have an existing REST JAX-RS Application based on CXF mechanics. that > is

Re: JAX-RS Whiteboard and CXF Mechanics

2019-01-02 Thread Tim Ward
>> 1. Some of the providers I configure programmatically implement JAX-RS >> interfaces and are provided by CXF or other frameworks, >> e.g. CrossOriginResourceSharingFilter, MultipartProvider, >> JacksonJsonProvider, WebApplicationExceptionMapper. >> How do I make these known to my JAX-RS Whitebo

Re: JAX-RS Whiteboard and CXF Mechanics

2019-01-02 Thread Oliver Schweitzer
Hi, Ok, thanks to the hints itt I have solved my two most pressing issues, with some links/insights below. JAAS: This helped me immensely to bridge JAAS and JAX-RS: https://github.com/andyphillips404/awplab-core/blob/master/rest/service/src/main/java/com/awplab/core/rest/service/security/Basi

Re: JAX-RS Whiteboard and CXF Mechanics

2019-01-03 Thread Tim Ward
I know that the JAX-RS whiteboard spec took a while to become a reality, but I’m really glad to hear that it is working well for you, and that it has helped to clean things up. Best Regards, Tim > On 2 Jan 2019, at 21:35, Oliver Schweitzer wrote: > > Hi, > > Ok, thanks to the hints itt I h

Re: JAX-RS Whiteboard and CXF Mechanics

2019-01-03 Thread Jean-Baptiste Onofré
By the way, the Karaf full example is here: https://github.com/apache/karaf/tree/master/examples/karaf-rest-example/karaf-rest-example-whiteboard Regards JB On 03/01/2019 16:38, Tim Ward wrote: > I know that the JAX-RS whiteboard spec took a while to become a reality, > but I’m really glad to he