Pretty much. The OSGi util specifications are self-implementing, so the OSGi 
version of the JAR contains the spec API and the reference implementation.

This dependency list has everything needed to get the JAX-RS Whiteboard running 
on Java 11 (meaning that there are a few things that you don’t need on Java 8). 
https://github.com/osgi/osgi.enroute/blob/7d534c287aa6e3ee9391f815d03ca4f81e480356/indexes/impl-index/pom.xml#L195-L233
 
<https://github.com/osgi/osgi.enroute/blob/7d534c287aa6e3ee9391f815d03ca4f81e480356/indexes/impl-index/pom.xml#L195-L233>

The main OSGi pieces are the JAX-RS Whiteboard API, OSGi Promises and OSGi 
Functions. Other than that you have the JAX-RS spec API (including the relevant 
API contract), and the whiteboard implementation bundle.

Tim

> On 22 Nov 2018, at 17:30, Jean-Baptiste Onofré <j...@nanthrax.net> wrote:
> 
> I guess it's the same thing some org.osgi.util.promise right ?
> 
> Regards
> JB
> 
> On 22/11/2018 18:19, Tim Ward wrote:
>> That’s part of the JAX-RS Whiteboard spec API. You can find the JAX-RS
>> Whiteboard spec API as a standalone jar in Maven
>> Central 
>> https://mvnrepository.com/artifact/org.osgi/org.osgi.service.jaxrs/1.0.0 
>> 
>> The compendium uber jar isn’t actually helpful for deployment anyway as
>> it’s intended to be a compile-time only artefact (there’s a deliberate
>> unresolvable requirement designed to stop it being deployed).
>> 
>> Tim
>> 
>>> On 22 Nov 2018, at 16:48, Jean-Baptiste Onofré <j...@nanthrax.net
>>> <mailto:j...@nanthrax.net>> wrote:
>>> 
>>> Hi Tim,
>>> 
>>> the missing package is org.osgi.service.jaxrs.client (required by Aries
>>> JAXRS Whiteboard bundle) which seems to be only in Compendium R7 (not R6).
>>> 
>>> Regards
>>> JB
>>> 
>>> 
>>> On 22/11/2018 17:10, Tim Ward wrote:
>>>>> that won't work out of the box as Karaf 4.2.x is still R6.
>>>> 
>>>> Aries JAX-RS Whiteboard runs quite happily on R6. Obviously the DS
>>>> component property annotations would create a DS 1.4 requirement, but
>>>> the DS reference implementation also runs on R6. Even if you aren’t
>>>> able to use DS 1.4, it’s still pretty easy to set the properties
>>>> using the DS 1.3 annotation syntax. I’m therefore really not sure why
>>>> this would be a problem.
>>>> 
>>>>> In the mean time, I'm creating a very simply rest whiteboard pattern for
>>>>> CXF.
>>>>> It doesn't use all the JAXRS whiteboard spec, but just works fine for
>>>>> most of the use cases.
>>>> 
>>>> Why would you duplicate this effort when there’s a spec which is so
>>>> easy to use? By all means create an alternative implementation, but
>>>> yet another whiteboard…
>>>> 
>>>> Tim
>>>> 
>>>>> On 22 Nov 2018, at 16:03, Jean-Baptiste Onofré <j...@nanthrax.net
>>>>> <mailto:j...@nanthrax.net>> wrote:
>>>>> 
>>>>> Hi Tom,
>>>>> 
>>>>> that won't work out of the box as Karaf 4.2.x is still R6.
>>>>> 
>>>>> It will work with Karaf 4.3.x that will be R7.
>>>>> 
>>>>> In the mean time, I'm creating a very simply rest whiteboard pattern for
>>>>> CXF.
>>>>> It doesn't use all the JAXRS whiteboard spec, but just works fine for
>>>>> most of the use cases.
>>>>> 
>>>>> Regards
>>>>> JB
>>>>> 
>>>>> On 22/11/2018 17:00, t...@quarendon.net <mailto:t...@quarendon.net> wrote:
>>>>>>> You should then be able to get away with relatively few bundles.
>>>>>>> The JAX-RS Whiteboard API, OSGi Promises + function, the Aries
>>>>>>> wrapping of the JAX-RS API and the Aries JAX-RS Whiteboard
>>>>>>> implementation should be enough. This is by far preferable to
>>>>>>> using CXF directly, where you don’t have proper resource
>>>>>>> isolation, nor do you have a nice way to apply extensions (e.g.
>>>>>>> JSON support, CORS headers, etc).
>>>>>> 
>>>>>> So I've added those bundles (promise, function and the aries jaxrs
>>>>>> spec bundle for the JavaJAXRS capability), the problem I now have
>>>>>> is that it's missing the JavaAnnotation capability, version 1.3.0.
>>>>>> I suspect I have something providing an earlier version of that,
>>>>>> but at the moment my OSGi fu hasn't yielded the answer yet.
>>>>>> 
>>>>>> Good to know though that I'm potentially on the right track.
>>>>>> 
>>>>> 
>>>>> -- 
>>>>> Jean-Baptiste Onofré
>>>>> jbono...@apache.org <mailto:jbono...@apache.org>
>>>>> http://blog.nanthrax.net
>>>>> Talend - http://www.talend.com
>>>> 
>>> 
>>> -- 
>>> Jean-Baptiste Onofré
>>> jbono...@apache.org <mailto:jbono...@apache.org>
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>> 
> 
> -- 
> Jean-Baptiste Onofré
> jbono...@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com

Reply via email to