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

Hi Scott,

How OSGi provides support for the new jakarta namespaces is under consideration now. It's a huge job to go back through all of the specifications that exist and update them, so one of the options being considered is to only update them if the specification needs to be changed for some other reason.

If the HttpService you're referring to is the actual OSGi HttpService then this is unlikely to get updated at all. The specification is very old, and contains some less than desirable usage patterns. The Http Service specification has also been superseded by the Http Service Whiteboard. 

If you wanted to contribute to updating the Http Service Whiteboard specification to support the jakarta packages then I'm sure that the help would be welcome. It would likely involve some discussion of how to support existing (javax.servlet.Servlet) and new (jakarta.servlet.Servlet) clients with a single implementation.

Best Regards,

Tim


From: osgi-users <osgi-users-bounces@xxxxxxxxxxx> on behalf of Scott Lewis <slewis@xxxxxxxxxxxxx>
Sent: 24 June 2021 23:56
To: osgi-users@xxxxxxxxxxx <osgi-users@xxxxxxxxxxx>
Subject: [osgi-users] HttpService and jakarta.servlet
 
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

Back to the top