O'Reilly logo

J2EE™ Tutorial, The by Beth Stearns, Monica Pawlan, Eric Jendrock, Kim Haase, Dale Green, Stephanie Bodoff

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

Chapter 4. A Session Bean Example

Dale Green

Session beans are powerful because they extend the reach of your clients into remote servers—yet they’re easy to build. In Chapter 2, you built a stateless session bean named ConverterEJB. This chapter examines the source code of a stateful session bean called CartEJB.

In This Chapter

The CartEJB Example

Session Bean Class

Home Interface

Remote Interface

Helper Classes

Running the CartEJB Example

Other Enterprise Bean Features

Accessing Environment Entries

Comparing Enterprise Beans

Passing an Enterprise Bean’s Object Reference

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