Chapter 8. Exposing EJBs as web services

This chapter covers

  • The basics of web services
  • The basics of SOAP (JAX-WS)
  • Exposing EJBs as SOAP web services
  • The basics of REST (JAX-RS)
  • Exposing EJBs as RES web services

In this chapter we’re going to delve into exposing Enterprise Java Beans via web services using either SOAP or REST. Web services have become an industry standard for application-to-application (A2A) and business-to-business (B2B) integration. They’re key to developing software according to SOA principles where functionality is exposed as interoperable services that are loosely coupled.

What do web services have to do with EJB 3? You can think of web services as a way to expose your stateless session beans to clients written in both ...

Get EJB 3 in Action, Second Edition 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.