Network Deployment (Distributed operating systems), v8.0 > End-to-end paths > Web services - RESTful services


 Implementing JAX-RS web applications

We can use Java API for RESTful Web Services (JAX-RS) to develop services that follow Representational State Transfer (REST) principles. Using JAX-RS, development of RESTful services is simplified. JAX-WS

JAX-RS is a Java API for developing REST applications quickly. This standard API continues to gain support throughout the Java community. While JAX-RS provides a faster way of developing web applications than servlets, the primary goal of JAX-RS is to build RESTful services. 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.

By using the principles of REST, your business applications can benefit from several advantages. RESTful services are generally simpler to develop and consume. Most RESTful services use well-defined standards for delivery such as HTTP. Because HTTP is a protocol that has RESTful properties, RESTful services gain scalability advantages that enable the service to serve different clients and interoperate with multiple services, while permitting future growth. Additionally, clients for RESTful services generally are not difficult to develop, yielding interoperability advantages because most RESTful services use common data representations such as XML and JSON.

By using JAX-RS technology, REST applications are simpler to develop, simpler to consume, and simpler to scale when compared to other types of distributed systems. Many popular and widely used Internet services have successfully provided RESTful APIs to their applications. Third parties have used various REST APIs to build their own businesses and applications.

JAX-RS capabilities are provided by the use of a servlet or a filter. When you configure the web.xml file of your web application and assemble the IBM JAX-RS implementation that is based on the Apache Wink framework into the library directory of your web application, your business application is now ready to use JAX-RS capabilities.


Procedure

  1. Configure the development environment.

  2. Define the resources in JAX-RS web applications.

  3. Configure the JAX-RS application.

  4. Assemble JAX-RS web applications.

  5. Deploy JAX-RS web applications.


Results

You have developed and deployed a JAX-RS web application on the application server.



Related concepts

Overview of IBM JAX-RS

Related tasks

Plan to use JAX-RS to enable RESTful services

Related reference

Web services specifications and APIs









+

Search Tips   |   Advanced Search