Summary
In this chapter we have learned how to create and expose an Enterprise Java Bean (EJB) as a RESTful web service through usage of JAX-RS annotations. We also created JPA entities and exposed those classes as XML and JSON objects through JAXB, composing the RESTful web service. Finally, we've updated the search page to consume the exposed API by showing how to create a RESTful client using Jersey's (JAX-RS RI) client API.
In the next chapter we're going to learn how to use JAX-WS to expose and invoke SOAP web services and how to create validations using the bean validation framework.