Name
Session Façade
Goal
Increase performance by organizing remote business data in the most efficient manner (Figure B-12).
Participants
- Client
Manipulates business data using a façade.
- Session façade
Remote object that provides access to business data.
- Business objects
Stores business data (Figure B-13).
Figure B-13. Interactions in the Session Façade pattern
Interactions
The client calls a business method of the remote session façade. The façade locates and manipulates business objects locally and returns the result to the client.
Notes
Session façades are most effective when using Session EJBs and EJB local home objects. This combination allows the façade to manipulate EJBs locally, significantly reducing network overhead. Façades usually communicate with clients using DTOs.
Get J2EE Design Patterns 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.