Summary

In this chapter we examined the process of integrating EJBs into our movie store application. EJBs are not a requirement for every application, and EJBs could be used partially in an application. In fact, this chapter demonstrated a partial implementation; the demonstration code shown in this chapter used EJBs only for the shopping cart portion of the movie store.

We refactored the shopping cart bean in this chapter to use an EJB to perform the processing of the shopping cart. A presentation tier component, a JavaBean, is used as a proxy to communicate with the EJB. The shopping cart EJB simply extended the shopping cart JavaBean developed in the previous chapter and exposed the methods needed by the presentation tier proxy.

We also looked ...

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software 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.