Instead of using the Apache Wink REST client inside a
server application, you can use the Thin Client for JAX-RS that is
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.
About this task
Supported configurations: You 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.
sptcfg
Procedure
- Configure the development environment. Before
you start developing JAX-RS applications, you must set up your development
environment by adding the JAX-RS libraries on the classpath.
- 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.