Does Jersey ServletContainer class play the same role as DispatcherServlet class in Spring MVC? If not, what does it do?
Asked
Active
Viewed 1,118 times
0
-
Possible duplicate of [Confusion between HttpServlet class and using it with Jersey](http://stackoverflow.com/questions/17713752/confusion-between-httpservlet-class-and-using-it-with-jersey) – Imran Saeed Mar 27 '17 at 10:01
-
Yeah, I'd say they're analogous. They're both the entry point (servlets) to the request handling. That's probably the only thing they have in common. – Paul Samsotha Mar 27 '17 at 14:48
1 Answers
0
Yes. Both org.glassfish.jersey.servlet.ServletContainer in Jersey implementation of JAX-RS and org.springframework.web.servlet.DispatcherServlet in Spring-REST serve as a central servlet to provide an algorithm for incoming REST request processing, while actual work is performed by configurable, delegate components in the application.

absinha
- 1
- 1