Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [osgi-users] jakartarest-osgi and jetty 12

Hi Gernot,

you can already use the jakartarest-osgi with jetty 12.

You can take the Servlet whiteboard connector together with org.eclipse.osgitech.rest:

org.eclipse.osgi-technology.rest:org.eclipse.osgitech.rest:1.2.2

org.eclipse.osgi-technology.rest:org.eclipse.osgitech.rest.servlet.whiteboard:1.2.2

org.eclipse.osgi-technology.rest:org.eclipse.osgitech.rest.sse:1.2.2

We use:

org.apache.felix:org.apache.felix.http.jetty12:1.0.4

org.apache.felix:org.apache.felix.http.servlet-api:3.0.0

With this setup you just need to configure the setup using the config admin or the configurator:

{

":configurator:resource-version": 1,

"org.apache.felix.http~httpTest":

{

"org.osgi.service.http.port": "8088",

"org.osgi.service.http.host": "localhost",

"org.apache.felix.http.context_path": "/myhttproot",

"org.apache.felix.http.name": "HTTP",

"org.apache.felix.http.runtime.init.id": "myhttp"

},

"JakartarsServletWhiteboardRuntimeComponent~restTest":

{

"jersey.jakartars.whiteboard.name" : "MyREST",

"jersey.context.path" : "rest",

"osgi.http.whiteboard.target" : "(id=myhttp)"

}

}

So, your rest resource are bound to http://localhost:8088/myhttproot/rest/<something>

I hope this helps.

Regards,

Mark

[1] https://github.com/osgi/jakartarest-osgi?tab=readme-ov-file#osgi-servlet-whiteboard-setup


Am 24.05.24 um 16:17 schrieb Belger, Gernot via osgi-users:

Hello,

 

I just wanted to ask if there is a roadmap to update the jakartarest-osgi to jetty 12?

 

Kind Regards

Gernot

 

Mit freundlichen Grüßen
Björnsen Beratende Ingenieure GmbH

i. A. Dipl.-Math. Gernot Belger

Telefon +49 261 8851-147
g.belger@xxxxxxxxxxxx
www.bjoernsen.de



Björnsen Beratende Ingenieure GmbH
Maria Trost 3, 56070 Koblenz

Geschäftsführung
Dipl.-Ing. Architekt Matthias Bjørnsen
Dipl.-Ing. Patrick Blase
Dipl.-Kfm. (FH) Patrick Friedrich
Dr.-Ing. Kaj Lippert
Dr.-Ing. Michael Probst
Dipl.-Ing. (FH) Reiner Segschneider

Sitz und Registergericht
Koblenz HRB 1716

Beachten Sie bitte unsere Datenschutzhinweise.

 


_______________________________________________
osgi-users mailing list
osgi-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/osgi-users
-- 
Mark Hoffmann
M.A. Dipl.-Betriebswirt (FH)
CEO / CTO

Phone:  +49 3641 384 910 0
Mobile: +49 175 701 2201  
E-Mail: m.hoffmann@xxxxxxxxxxxxxxxx
Web: 	www.datainmotion.com

Data In Motion Consulting GmbH
Kahlaische Strasse 4
07745 Jena
Germany

CEO:
Mark Hoffmann
Jürgen Albert

Jena HRB 513025
Tax-No 162/107/05779
VAT-Id DE310002614



Back to the top