+

Search Tips   |   Advanced Search

Use the Apache Wink REST client as a stand-alone thin client

Instead of using the Apache Wink REST client inside a server application, we can use the Thin Client for JAX-RS provided with WebSphere Application Server as a stand-alone thin client to send requests to your RESTful service. The Thin Client for JAX-RS is a stand-alone Java SE 6 client environment that enables running unmanaged JAX-RS RESTful web services client applications in a non-WebSphere environment to invoke JAX-RS RESTful web services that are hosted by the application server.

Use the Thin Client for JAX-RS with WAS as a stand-alone client runtime environment in a pure Java SE environment. The Thin Client for JAX-RS is not supported running within WAS or WebSphere Application Client environments. In this version of the application server, other Thin Client run times provided with the application server can also reside in the CLASSPATH and coexist with the Thin Client for JAX-RS.


Tasks

  1. Configure the development environment. Before we start developing JAX-RS applications, we must set up the development environment by adding the JAX-RS libraries on the classpath.
  2. Implement a client using the unmanaged RESTful web services JAX-RS client. Use the Thin Client for JAX-RS to create a stand-alone client runtime environment in a pure Java SE environment to send requests to the JAX-RS application.

We have implemented an unmanaged RESTful web services JAX-RS client that can issue requests to a JAX-RS application.


Subtopics

  • Implement a client using the unmanaged RESTful web services JAX-RS 1.1 client