Reading the �Core
J2EE Patterns � Best Practices and Design Strategies�, I have questions about how session fa�ade could eliminate inter-entity bean communication.
In the case of two entity beans (Project, Resource) depending on a single entity bean (Commitment), it is not the best practice of using a composite entity bean encapsulate both �Project� and �Commitment�. (Page 334). The book recommended session fa�ade.
It sounds odd to me.
Before refactoring: An application client calls to the Project Remote Home Interface, and the Project entity bean calls to the Commitment Remote Home Interface. There are two calls to the Remote Home Interfaces.
After refactoring with Session Fa�ade: An application client calls the Session Fa�ade Remote Home Interface. The session fa�ade then calls the Project remote Home Interface. Project entity then calls the Commitment Remote Home interface. There are three calls to the Remote Homer interfaces.
It does not look like that Session Fa�ade reduces the inter-bean communication. Instead, it increases it.
Why is session facades recommended for eliminating inter-entity bean communication?
Thanks a ton in advance.
X. John Wen<br />SCEA, SCWCD, SCJP, MCAD.NET, MCDBA, MCP