O'Reilly logo

Enterprise JavaBeans™ Component Architecture: Designing and Coding Enterprise Applications by Paul Anderson, Gail Anderson

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

5.7. Key Point Summary

This chapter introduces stateful session beans and contrasts them with stateless sessions beans. The MusicCart EJB is a classic example of a stateful session bean since it keeps track of client-specific conversational state. In addition, we implement the Value List Iterator Pattern, leveraging the benefits of both a stateful session bean (MusicIterator EJB) and a stateless session bean (MusicPage EJB). We bring these three EJBs together in one J2EE application with a web component JSP client. We examine how the EJB container manages the life cycles and assignment of EJB objects to clients and how it affects the overall performance of an enterprise application. We use local interfaces to further improve the performance garnered ...

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