Enterprise JavaBeans™ Component Architecture: Designing and Coding Enterprise Applications
by Gail Anderson, Paul Anderson
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 ...
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