>>>>> Scott Lewis <[email protected]>: > 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 I don't think that will be a burden.
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 (the downside is that I would have to move to karaf 4.2, and I ran into some issues doing when I inadvertently tried 4.2.0. JB had some ideas about what was the cause of my problem, and I will look into them) How would the service provided by the StudentServiceImpl component be exposed as a REST service on HTTP in a servlet? > Also: I've very recently added bndtools 4 project and bndrun > templates for using either jersey or cxf to export the same jaxrs > service [2]. That's probably the answer to my previous question? :-) > I haven't had a chance to create tutorial about these templates yet, > but if you are using bndtools 4 it might be helpful. I'm using 3.5.1 of maven-bundle-plugin, so probably not bndtools 4, unfortunately. Thanks!
