Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [osgi-users] HttpService and jakarta.servlet

Jurgen, Tim, BJ,

Thanks for your responses. 

First things first:   The reason I'm interested in Jersey 3 is that I have a remote services/RSA distribution provider based upon Jersey 2 (currently) [1].   This distribution provider currently uses the actual (old) HttpService with Servlet for historical reasons and uses Jersey 2.30.1.

It would be easiest to continue to use HttpService with Jersey 3/jakarta...which is why I asked.

I'll likely move things over to the whiteboard spec in due time.    It's too far afield for me currently to contribute to the jakarta support in whiteboard although you have my support as a middleware consumer (and with updating old and heavily-used specs).

FWIW:  So far, I've not heard any clamoring for Jersey 3/jakarta over the Jersey 2 stream.   Trying to get a jump on it, however...assuming it happens.

Scott

[1] https://github.com/ECF/JaxRSProviders


On 6/25/2021 6:31 AM, BJ Hargrave wrote:
Not to my knowledge. OSGi, like other downstream users of Java enterprise APIs, still needs to deal with the namespace change. OSGi has an open issue on this [1], but has not commenced any work yet. I suspect OSGi will not update the old HttpService spec but will focus on updating the newer HttpWhiteboard spec regarding the servlet API.
 
--

BJ Hargrave
Senior Technical Staff Member, IBM // office: +1 386 848 1781
OSGi Fellow and OSGi Specification Project lead // mobile: +1 386 848 3788
hargrave@xxxxxxxxxx
 
 
----- Original message -----
From: Scott Lewis <slewis@xxxxxxxxxxxxx>
Sent by: "osgi-users" <osgi-users-bounces@xxxxxxxxxxx>
To: osgi-users@xxxxxxxxxxx
Cc:
Subject: [EXTERNAL] [osgi-users] HttpService and jakarta.servlet
Date: Thu, Jun 24, 2021 18:57
 
Hi,

I would like to use Jersey 3.X (which is based on the jakarta
namespace...e.g. jakarta.servlet rather than javax.servlet) and the OSGi
HttpService.   Currently, the OSGi 8 HttpService interface references
the old namespce for Servlet...i.e. javax.servlet.Servlet [1].

Jersey 3, it seems...uses/refers to the jakarta.servlet.Servlet class
and provides an implementation...e.g.
org.glassfish.jersey.servlet.ServletContainer (which implements
jakarta.servlet.Servlet.

Is there a way to run use Jersey 3's ServletContainer (jakarta
hamespace) with HttpService (javax namespace) implemented by
Jetty?...and/or others?

Thanksinadvance,

Scott

[1] https://osgi.github.io/osgi/cmpn/service.http.html#i1223311 

_______________________________________________
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

 
 



_______________________________________________
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

Back to the top