Chapter 15. Exposing EJBs as web services
This chapter covers
- Web service primer
- Java-XML web services
- Developing EJB web services
Service-oriented architecture (SOA) and web services are no longer buzzwords. These technologies have become a reality in the past few years. Web services are definitely the new industry standard for application-to-application (A2A) and business-to-business (B2B) integration.
What do web services have to do with EJB 3? Exposing your business logic component as web service is a snap with EJB 3. Stick with us through this chapter and we’ll demonstrate how EJB 3 can be combined with web service metadata to provide compelling solutions for exposing business logic as web services.
Let’s illustrate this with another scenario from the ActionBazaar application. The promoters of ActionBazaar are being forced to expose some components as web services because their competitors now offer competing services. ActionBazaar wants to stay competitive, and needs to quickly enable their business functionality in a way that users of the system can easily consume.