+

Search Tips   |   Advanced Search

Plan to use JAX-RS to enable RESTful services

JAX-RS provides a faster way for developing web applications than servlets. JAX-RS 1.0 defines a server-side component API to build REST applications. IBM JAX-RS provides an implementation of the JAX-RS (JSR 311) specification.

Due to the simple consumption of RESTful services, we can write clients in many languages on different platforms. Most languages require no third-party libraries as long as there is a method to use an HTTP connection. Clients are typically web browsers. Many Web 2.0 properties use a JavaScript framework such as Dojo toolkit for developing a client in a browser in conjunction with a RESTful server-side application that provides the data for the client.

  1. Review existing applications to determine which services to implement as REST services.

  2. Define the resources in the RESTful applications.

  3. Determine the URL patterns, operations, and media type formats to use for each resource.

    1. Define the URI patterns for resources in RESTful applications.

    2. Define the client capabilities for RESTful applications using HTTP methods .

    3. Define the HTTP headers and response codes for RESTful applications using HTTP methods.


Results

You have a design plan for using JAX-RS to implementing REST services.


Related tasks

  • Overview of Java API for RESTful Web Services (JAX-RS)
  • Implement JAX-RS web applications
  • Define the resources in RESTful applications
  • Define resource methods for RESTful applications
  • Define the HTTP headers and response codes for RESTful applications