Building a RESTful web service using the JAX-RS API (using the Jersey implementation)

There is a set of annotations defined by JAX-RS under the javax.ws.rs package that you can use to build RESTful web services. The following table defines of some important annotations:

To build a RESTful web service based on JAX-RS, perform the following steps:

  1. Define the remote server component.
  2. Implement the deployment descriptor configurations.
  3. Write the web component that is the default home page of the web service application.
  1. Write the client program to consume the web service.
  1. The first step is to define the remote server component for the RESTful ...

Get Distributed Computing in Java 9 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.