Introduction

In the previous chapter we looked at a movie store application that used two J2EE components, JSP and servlets, to create the application. While it is not uncommon to create an application with only these two J2EE components, we cannot get a complete view of J2EE components without taking a look at using EJBs with this application. In this chapter, we will look at how we can refactor the shopping cart application to use an EJB to implement the ShoppingCartBean shown in the previous chapter.

The movie store application also used a servlet to output graphic images (the images of the movie video box) from a database to an HTML page. Storing graphic images in a database has a number of advantages. But to use graphics in a database we ...

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.