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