Enterprise JavaBeans™ Component Architecture: Designing and Coding Enterprise Applications
by Gail Anderson, Paul Anderson
7.4. Web Component Client
In Chapter 5, “Stateful Session Beans,” our web component allows users to select recording titles from a music database and place them in a virtual shopping cart. We represent the virtual shopping cart with a stateful session bean. In Chapter 6, “Entity Beans with BMP,” we add true database lookup for returning customers and the ability to sign up as a new customer using a Customer EJB and a session facade to provide the interface between the web component and the entity bean. In this chapter our online shopping application can create orders and add them to an underlying database. To do this, we enhance the session facade with the underlying support of entity beans Order EJB and LineItem EJB. Also, we include relationship ...
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