Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Jetty 12: org.eclipse.jetty.http.MultiPart.Part does not extend Servlet 6 jakarta.servlet.http.Part

If Jakarta Servlet 6 (and presumably future versions) and Jetty are Eclipse Foundation technologies and some of the same members work on the Servlet Spec and on Jetty, why is Jetty doing something different from the spec?  If there's a need for change, shouldn't the spec be changed to meet that need too?

On Wed, Oct 9, 2024 at 10:35 AM Joakim Erdfelt <joakim.erdfelt@xxxxxxxxx> wrote:
Servlet 7 will be more like Servlet 6.

- Joakim


On Wed, Oct 9, 2024 at 8:05 AM Glen Peterson via jetty-users <jetty-users@xxxxxxxxxxx> wrote:
Will Servlet7 be more like Servlet6, or more like Jetty12?

Thank you for your help here, and on my other question, and for your work on Jetty over the years!

On Mon, Sep 30, 2024 at 4:29 AM Simone Bordet <sbordet@xxxxxxxxxxx> wrote:
Hi,

On Thu, Sep 26, 2024 at 11:55 PM Glen Peterson via jetty-users
<jetty-users@xxxxxxxxxxx> wrote:
>
> How would I know which one I want?

If you want to stick using the Servlet APIs, then continue using
HttpServletRequest.getParts().

Jetty 12 allows you to write web application without using the Servlet
APIs, by using directly the Jetty Core APIs.
Use MultiPartFormData if you want to write web applications using the
Jetty Core APIs.

The benefits of the Servlet APIs: they are a standard and well known.
But they are old and for multipart they are blocking, so the
scalability will be limited.

The benefit of the Jetty Core APIs: they are new, fully non-blocking
and provide more performance (see
https://webtide.com/jetty-12-performance-figures/).
But you need to learn how to deploy a Jetty Core web application (see
https://github.com/jetty/jetty.project/issues/11861).

So your pick, really.

If you want more flexible, modern stuff, you may want to switch to
Jetty Core APIs.
If the Jetty Core APIs have a missing feature, you can ask for it, and
it will likely take less time to be implemented.

If you like the coziness of Servlets, stick with them.

--
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/jetty-users

Back to the top