7.3. Session Facade Pattern
Now that you've seen the three entity beans in our enterprise application, it's time to present the Session Facade session bean, CustomerSession EJB. The CustomerSession EJB is an enhanced version of the session bean we presented in Chapter 6 (see Listing 6.20 on page 256). For a detailed explanation of the Session Facade Pattern (and why you'd want to use it), see “Session Facade Pattern” on page 250. As you examine the code for the session facade, you'll see how it provides the business logic for a consistent interface to the three entity beans.
Figure 7-5 contains a more detailed diagram of the Session Facade implementation, including the three entity beans. The remote client access to the entity beans is through ...
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.