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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access