> On 24 Jul 2018, at 17:00, Steinar Bang wrote:
>
>> Tim Ward :
>
>> Would it not be easier to:
>> Use the Http Service Whiteboard support for resource serving, rather than
>> having the ReactServlet? That’s a big bit of boilerplate for serving some
>> static content. It should be much
> Tim Ward :
> Would it not be easier to:
> Use the Http Service Whiteboard support for resource serving, rather than
> having the ReactServlet? That’s a big bit of boilerplate for serving some
> static content. It should be much simpler using component
> properties/annotations - see
>
Would it not be easier to:
Use the Http Service Whiteboard support for resource serving, rather than
having the ReactServlet? That’s a big bit of boilerplate for serving some
static content. It should be much simpler using component
properties/annotations - see
> Jean-Baptiste Onofré :
> Not using Jersey but cxfrs.
> I can add this new example using jersey.
If you want, and tell me where to put it, I can whip up an example and
provide a pull request?
Basically this Counter example with Jersey instead of implementing the
REST service directly in a
> Steinar Bang :
>> The service definition is
>> https://github.com/steinarb/ukelonn/blob/5ca75f438407c594ed476bed790d984b0007cfdf/ukelonn.api/src/main/java/no/priv/bang/ukelonn/UkelonnService.java#L36
>> The service implementation, is this DS component
>>
> Scott Lewis :
> If you would like to expidite, please open an issue here [1] for the
> use of http-whiteboard in jersey and cxf distribution providers, and
> it could happen pretty quickly.
https://github.com/ECF/JaxRSProviders/issues/7
(but as I say below: the biggest hurdle for me is
On 7/14/2018 10:33 AM, Steinar Bang wrote:
(However, once I'm on karaf 4.2.x and OSGi 7.0.0, and once I hear
rumours that Scott Lewis' approach will be working with the http
whiteboard, then ditching my resource classes and annotating the service
is something I will try)
If you would like to
On 7/14/2018 3:14 AM, Steinar Bang wrote:
[snip!]
it doesn't currently use the http whiteboard, but it could...and may
eventually.
Ah, ok. I need something that uses the http whiteboard.
I would welcome a contribution to use the http whiteboard for this
project [1]. It would/will be a
> Steinar Bang :
> The service definition is
>
> https://github.com/steinarb/ukelonn/blob/5ca75f438407c594ed476bed790d984b0007cfdf/ukelonn.api/src/main/java/no/priv/bang/ukelonn/UkelonnService.java#L36
> The service implementation, is this DS component
>
>
Hi Steinar,
I recommend to use the annotation from osgi.cmpn.
javax.ws.rs can be provided by the spec or a impl (like CXF).
Regards
JB
On 14/07/2018 12:14, Steinar Bang wrote:
>> Scott Lewis :
>
> [snip!]
>> Yes. I haven't looked at your annotations, and so don't know if they
>> all
> Scott Lewis :
[snip!]
> Yes. I haven't looked at your annotations, and so don't know if they
> all are from the javax.ws.rs packages...but assuming so...that's the
> idea.
The DS annotations are from
mvn:org.osgi/org.osgi.service.component.annotations/6.0.0
The whiteboard constants
On 7/13/2018 3:40 PM, Steinar Bang wrote:
That's interesting! Just annotating my service interface, and its
implementation with jaxrs annotations, like the StudentService and
StudentServiceImpl here...?
https://wiki.eclipse.org/Tutorial:_Exposing_a_Jax_REST_service_as_an_OSGi_Remote_Service
> Scott Lewis :
> FYI: I've recently created a tutorial describing how to export from
> Karaf a jaxrs-annotated remote service with either cxf or jersey
> [1]. It does require an interface with jaxrs annotations that are
> the same as the resource annotations, but you (Steinar) already
FYI: I've recently created a tutorial describing how to export from
Karaf a jaxrs-annotated remote service with either cxf or jersey [1].
It does require an interface with jaxrs annotations that are the same as
the resource annotations, but you (Steinar) already have the
UkelonService so
> - :
> This is what I used as my guide:
> https://github.com/jersey/jersey/tree/master/examples/osgi-http-service
Thanks!
What I've done so far, in my vaadin-to-react rewrite,
https://github.com/steinarb/ukelonn/tree/using-react
is to just create a servlet for each service.
s.
>
> Scott
>
> From: "Jean-Baptiste Onofré" j...@nanthrax.net
> Date: Wed, Jun 27, 2018 5:17 pm
> To: user@karaf.apache.org
> Subject: Re: Examples of using Jersey with pax web whiteboard extender?
>
> Not using Jersey but cxfrs.
>
>
>
>
>To: user@karaf.apache.org
>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
>
>
> L
distribution providers.
Scott
From: "Jean-Baptiste Onofré" j...@nanthrax.net
Date: Wed, Jun 27, 2018 5:17 pm
To: user@karaf.apache.org
Subject: Re: Examples of using Jersey with pax web whiteboard extender?
Not using Jersey but cxfrs.
I can add this new example us
Not using Jersey but cxfrs.
I can add this new example using jersey.
Regards
JB
Le 27 juin 2018 à 23:48, à 23:48, Steinar Bang 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
This is what I used as my guide:
https://github.com/jersey/jersey/tree/master/examples/osgi-http-service
On Wednesday, June 27, 2018, 11:48:44 AM EDT, Steinar Bang
wrote:
Does anyone know of any code examples of creating a REST API with
Jersey, from a whiteboard servlet started as a
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
21 matches
Mail list logo