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.
- 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.
- 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
- Set up a development environment for JAX-RS applications
The application server provides command-line tools to develop web services clients and implementations based on the Java API for RESTful Web Services (JAX-RS) specification. Set up the development environment before you start developing web services.
- Implement a client using the unmanaged RESTful web services JAX-RS client
WebSphere Application Server provides a thin Java Platform, Standard Edition 6 (Java SE 6) RESTful web services client run time to enable application developers to quickly and easily create JAX-RS client applications. The Thin Client for JAX-RS with WebSphere Application Server 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.
Related tasks
Implement a client using the unmanaged RESTful web services JAX-RS client