Chapter 4. Creating RESTful Services with JAX-RS
At this point we already have the business case defined, a web application reading information from a database and every needed component running in WebLogic Server. Some other inner concepts are well developed and exemplified, such as modularization (web module, entities module) and dependency injection with CDI.
The objective of this chapter is to enhance the application created in the previous chapter, Store, by adding more information to the search page based on a remote call to a new application, Theater, which exposes a RESTful web service that provides movie exhibition dates.
Note
By definition, a web service is designed to support machine-to-machine communication in a platform-independent way. The decision to design such services using REST or SOAP standards are beyond the scope of this book, although readers will get an example of each type of service and can compare the benefits and drawbacks of each approach.
So, in this chapter we...