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

Get Enterprise JavaBeans™ Component Architecture: Designing and Coding Enterprise Applications 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.