Got it ;)

AFAIR, Christian started a PoC about a Karaf resolver. I will resume what he started.

Regards
JB


On 05/09/2018 17:01, Tim Ward wrote:
I wasn’t referring to Karaf, I was referring to the enRoute build output!

Tim

On 5 Sep 2018, at 16:00, Jean-Baptiste Onofré <j...@nanthrax.net <mailto:j...@nanthrax.net>> wrote:

By the way, Karaf is "not just Maven after all" ;) It's a little more than that ;) (actually largely more than that ;)).


On 05/09/2018 16:41, Tim Ward wrote:
OSGi enRoute is a project aimed at getting users with little/no OSGi experience familiar with OSGi specifications and best practices. It produces bundles and repository indexes, but it is not itself a runtime.

The project is deliberately not opinionated about server platforms, and so it doesn’t use Karaf or any other platform. Instead it resolves and assembles the bundles you need based on your application requirements (using the standard OSGi resolver model and your build dependencies). The output is a standalone executable JAR so that the code can be easily run and debugged.

If someone wanted to describe how to export a KAR/feature, or to add a Karaf exporter to the bnd-export-maven-plugin then it shouldn’t be difficult, it is only Maven after all!

Tim

On 5 Sep 2018, at 15:32, Jean-Baptiste Onofré <j...@nanthrax.net <mailto:j...@nanthrax.net>> wrote:

Does it run in Karaf ?

Regards
JB


On 05/09/2018 16:30, Tim Ward wrote:
OSGi enRoute contains tutorials and examples which cover using the JAX-RS whiteboard. They’re pretty quick to run through.

https://enroute.osgi.org/Tutorial/

Best Regards,

Tim

On 5 Sep 2018, at 15:18, atouat <adnan.tou...@gmail.com <mailto:adnan.tou...@gmail.com>> wrote:

Hello to everybody,

I wanted to try out using Aries JAXRS Whiteboard, since there is released
version now.

For this, I have donwloaded a new Karaf 4.2.1. I created a feature in order
to install Aries Jaxrs Whiteboard.

The feature.xml looks like this:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<features xmlns="http://karaf.apache.org/xmlns/features/v1.4.0";
name="aries-jaxrs-whiteboard">
   <feature name="aries-jaxrs-whiteboard"
description="aries-jaxrs-whiteboard" version="1.0.0">
       <feature>http-whiteboard</feature>

<bundle>mvn:org.apache.aries.spec/org.apache.aries.javax.jax.rs-api/1.0.0</bundle>

<bundle>mvn:org.apache.felix/org.apache.felix.http.servlet-api/1.1.2</bundle>

<bundle>mvn:org.apache.servicemix.specs/org.apache.servicemix.specs.annotation-api-1.3/1.3_1</bundle>
       <bundle>mvn:org.osgi/org.osgi.service.http.whiteboard/1.1.0</bundle>
       <bundle>mvn:org.osgi/org.osgi.service.jaxrs/1.0.0</bundle>
       <bundle>mvn:org.osgi/org.osgi.util.function/1.1.0</bundle>
       <bundle>mvn:org.osgi/org.osgi.util.promise/1.1.0</bundle>

<bundle>mvn:org.apache.aries.jax.rs/org.apache.aries.jax.rs.whiteboard/1.0.0 <http://org.apache.aries.jax.rs/org.apache.aries.jax.rs.whiteboard/1.0.0></bundle>
   </feature>
</features>

I have now all bundles active.

I tried the code example from @jbonofre (the giothub link returns an HTTP 404 error). My bundle was deplyoed and active, but I could not access my
rest service.

I tried to url http://loclahost:8181/myName but there was no response at
all.

What am I missing? Can someone provide a working example with Aris JAXRS
Whiteboard please?


Greetings,

Adnan



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html






Reply via email to