Have you considered using the OSGi R7 JAX-RS whiteboard <https://osgi.org/specification/osgi.cmpn/7.0.0/service.jaxrs.html>? It will almost certainly be easier than trying to set up your own JAX-RS runtime, and it’s designed to make building modular rest applications really easy. It also natively (and transparently) supports the full range of JAX-RS annotations and extensions, making it a better fit than repurposing a remote services implementation for many JAX-RS applications.
The reference implementation from Aries is just preparing for it’s official release (it uses CXF), and there are other implementations in the works elsewhere based on different JAX-RS providers. You can see examples of using the JAX-RS whiteboard in the tutorials at https://enroute.osgi.org <https://enroute.osgi.org/> Best Regards, Tim > On 28 Jun 2018, at 04:37, Jean-Baptiste Onofré <[email protected]> wrote: > > I will add a exemple on Karaf using ECF. That could help. > > Regards > JB > Le 28 juin 2018, à 11:32, Scott Lewis <[email protected] > <mailto:[email protected]>> a écrit: > With ECF photon there are remote service > providers built on both cxf and jersey > > https://github.com/ECF/JaxRSProviders <https://github.com/ECF/JaxRSProviders> > > The remote service example in this repo uses ds and standard jaxrs > annotations.. Example also uses r7 asyc remote services and runs unmodified > on either jersey or cxf distribution providers. > > Scott > > From: "Jean-Baptiste Onofré" <[email protected]> > Date: Wed, Jun 27, 2018 5:17 pm > To: [email protected] > Subject: Re: Examples of using Jersey with pax web whiteboard extender? > > Not using Jersey but cxfrs. > > > > > > > I can add this new example using jersey. > > > > > > > Regards > > > > > JB > > > Le 27 juin 2018, à 23:48, Steinar Bang < > [email protected]> a écrit: > > Does anyone know of any code examples of creating a REST API with > Jersey, from a whiteboard servlet started as a DS component? > > Thanks! > > > - Steinar > > > >
