Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What difference between Jersey vs jax-rs

I really cant understand what really is jersey..

What I know is that Jax-RS is an API for building REST web services, and jersey? I got some information and all say the same: "jersey is an implementation of Jax-RS". But what it means?

If jax-rs is an API, why we need jersey for create a rest web service? Is jersey a couple of more libs to aim with jax-rs? if yes, jax-rs is an incomplete API?

like image 876
user1851366 Avatar asked Jul 26 '13 18:07

user1851366


People also ask

What is the difference between Jersey and RESTEasy?

Both Jersey and RESTEasy provide their own implementation. The difference is that Jersey additionally provides something called Chunked Output. It allows the server to send back to the client a response in parts (chunks).

What is Jersey in RESTful web services?

Jersey is Sun's production quality reference implementation for JSR 311: JAX-RS: The Java API for RESTful Web Services. Jersey implements support for the annotations defined in JSR-311, making it easy for developers to build RESTful web services with Java and the Java JVM.

Which is better Jersey or spring boot?

Using Spring Boot and JerseySpring Boot provides the spring-boot-starter-jersey module that allows you to use the JAX-RS programming model for the REST endpoints instead of Spring MVC. It works quite well with Jersey 2. x. For a complete example of creating a web application with Jersey 2.

What is the difference between JAX-RS and spring REST?

JAX-RS is only a specification and it needs a compatible implementation to be used. On the other hand, Spring MVC is a complete framework with REST capabilities. Like JAX-RS, it also provides us with useful annotations to abstract from low-level details.


2 Answers

JAX-RS is an specification (just a definition) and Jersey is a JAX-RS implementation.

like image 63
Ale Zalazar Avatar answered Sep 25 '22 08:09

Ale Zalazar


Straight from the jersey site

Jersey framework is more than the JAX-RS Reference Implementation. Jersey provides its own API that extend the JAX-RS toolkit with additional features and utilities to further simplify RESTful service and client development. Jersey also exposes numerous extension SPIs so that developers may extend Jersey to best suit their needs.

like image 41
orangegoat Avatar answered Sep 24 '22 08:09

orangegoat