JAX-RS
remains for Java API for RESTful Web Services is a Java programming dialect API spec that offers help in making web services as indicated by the REST building design. JAX-RS utilizes annotations presented in Java SE 5, to rearrange the improvement and sending of web customers and endpoints.
From adaptation 1.1 on, JAX-RS is an official piece of Java EE 6. An eminent element of being an official piece of Java EE is that no arrangement is important to begin utilizing JAX-RS. For non-Java EE 6 situations a (little) section in the web.xml organization descriptor is required. REST
is a compositional style which depends on web-benchmarks and the HTTP convention. REST was initially depicted by Roy Fielding in 2000. In a REST based design everything is an asset. An asset is gotten to by means of a typical interface in light of the HTTP standard techniques. In a REST based engineering you ordinarily have a REST server which gives access to the assets and a REST customer which gets to and changes the REST assets.
Each asset ought to bolster the HTTP regular operations. Assets are recognized by worldwide IDs . REST permits that assets have distinctive representations, e.g., content, XML, JSON and so on. The REST customer can request a particular representation by means of the HTTP conventionThe following are the implementations of the JAX-RS API.
JSR 311 determination
and the Jersey usage gives a library to actualize Restful web services in a Java servlet compartment
and server side Jersey gives a servlet execution which filters predefined classes to distinguish RESTful assets. In the web.xml setup record user enlist this servlet for your web application. The Jersey usage additionally gives a customer library to speak with a RESTful web service. The following is the link for the servlet.
HTTP
ask for and chooses the right class and technique to react to this demand. This choice depends on explanations in the methods and classes .
A REST web application comprises, in this way, out of information classes, services. These two sorts are normally kept up in various bundles as the Jersey servlet will be told by means of the web.xml to check certain bundles for information classes. JAX-RS bolsters the formation of XML and JSON through the JAXB