+

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 the 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.

Supported configurations: We can use the Thin Client for JAX-RS with WebSphere Application Server as a stand-alone client runtime environment in a pure Java SE environment. The Thin Client for JAX-RS is not supported running within WebSphere Application Server 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.

  1. Configure the development environment. Before you start developing JAX-RS applications, 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 your JAX-RS application.


Results

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


Subtopics


Related tasks

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