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.

Get Getting Started with Oracle WebLogic Server 12c: Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.