[MGNLREST-342] DOC: Explain the difference between the servlets Created: 12/Jan/22  Updated: 22/Jun/22  Resolved: 22/Jun/22

Status: Closed
Project: Magnolia REST Framework
Component/s: integration
Affects Version/s: 2.1
Fix Version/s: None

Type: Task Priority: Neutral
Reporter: Richard Gange Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: resteasy, servlet
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLREST-82 Can't install modules because of conf... Closed
is related to MGNLREST-433 Donate REST Jersey support to community Open
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:

 Description   

Question: Any idea what the difference between: info.magnolia.rest.RestDispatcherServlet and info.magnolia.rest.RestJerseyDispatcherServlet is?

Answer: RESTEasy and Jersey impls are meant to be on feature parity.
Magnolia is typically deployed on Tomcat, which has no REST "engine", so we provide RESTEasy OOTB (but you can also provide Jersey instead). Only for certain application servers, could be WebSphere iirc, Jersey was the default REST (JAX-RS) impl, so one could exclude the whole RESTEasy libs and just rely on the ootb REST support.

See MGNLREST-82: Introduce RestJerseyDispatcherServlet to handle endpoint registration with jersey



 Comments   
Comment by Richard Gange [ 12/Jan/22 ]

Probably makes the most sense to add another bullet point here: https://docs.magnolia-cms.com/product-docs/6.2/Modules/List-of-modules/REST-module.html#_rest_integration

Comment by Mikaël Geljić [ 22/Jun/22 ]

Given uncertain usage/benefit, rather considering donating Jersey support to the community by now - see MGNLREST-433, closing.

Generated at Mon Feb 12 06:58:58 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.