Wednesday 25 July 2018


Spring REST VS Jersey(JAX-RS implementation):

REST API creation
  • Spring REST provides RESTFul implementation along with the ability to create a  Web full stack development support.
  • Whereas JAX-RS (Jersey, RESTEasy and Apache CXF implementation ) provide REST implementation only.


JAX-RS compliance
  • Spring REST is not in compliance with JAX-RS.
  • JAX-RS is a JSR Specification defining a Java API for RESTful Web Services.

-          Jersey, RESTEasy and Apache CXF are the implementation of JAX-RS.
-          We can use Jersey implementation if we go with JAX-RS compliance.

Server Migration
  • JAX-RS ensures portability of REST API code across all Java EE compliant application servers.
  • Spring REST we need to check whether we will have any issues in the server migration.


JAX-RS - Java API for RESTful WebService:

JAX-RS is a Java Specification Request (JSR).

JAX-RS ensures portability of REST API code across all Java-EE compliant application servers.

Many used to compare JAX-RS with Jersey and they think both are implementation for RESTful web service, that is not correct.

To make thinks clear, Jersey is an implementation of JAX-RS.

Other implementation that are JAX-RS compliant are RESTEasy and Apache CXF .