O'Reilly logo

J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software by Art Taylor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required