The product provides a Guest book sample that demonstrates a simple Representational State Transfer (REST) application using the IBM® Java™ API for RESTful Web Services (JAX-RS) implementation.
The following table lists the required prerequisites for the Guest book sample:
Product prerequisite | Version |
---|---|
Java Technology Edition | 5.0 or 6.0 |
Java 2 Platform, Enterprise Edition (J2EE) 1.4 or Java Enterprise Edition 5 (Java EE) application server | WebSphere® Application Server Version 6.1.0.x, |
The Guest book sample application demonstrates a RESTful application using the IBM JAX-RS implementation and the Dojo Toolkit. You can access REST services using various client technologies. In this sample, the IBM JAX-RS implementation provides the server-side implementation while a Dojo-powered AJAX client runs in a Web browser
By default, you can install the EAR application with minimal configuration. A Web module that contains the IBM JAX-RS powered service and the Dojo-powered Web page is preconfigured with a context root of /guestbook.
During the installation of the Feature Pack for Web 2.0, you can choose to install the IBM JAX-RS samples. Use the following instructions to install the sample outside of the product installation process.
You have completed the installation of the Guest book sample.
After the sample is installed, you can go to http://<hostname>:<port>/guestbook to visit the Dojo-powered Web page. If you use the default installation configuration, the following URL is an example of a valid URL: http://localhost:9080/guestbook or http://localhost:8080/guestbook.
You can now begin using Guest book sample, which demonstrates the configuration of services using the IBM JAX-RS server runtime and the use of a stand-alone Apache Wink client.
Contents of the Guest book sample
The design of the Guest book sample is to demonstrate the use of an IBM JAX-RS service and a Dojo-powered Web page working together. The sample emulates a simple Web page where people can post messages. By using a Web page with JavaScript™, any Web browser can be used to access the service.
A Dojo-powered Web page is provided in the same application. While other clients such as a standalone Java program can access the service simultaneously, the ability to simply access a RESTful service using a Web browser is one of the powerful aspects of REST.
In this information ...Related concepts
| IBM Redbooks, demos, education, and more(Index) |