Hi Hari,
I also have the same question and i have posted this question to the local
java users group mailing list. Here is the question that i have posted.
Can anyone clarify the difference between the Business Delegate and the session facade pattern. Both of them seems to be
to be quite similar to eachother. The objective of both the patterns seems to be the same
- To prevent the direct interaction of the client with the business services and reduce the coupling
between the services and clients so that the client is not vulnerable to changes in the business services.
- Another objective is to prevent multiple fine grained calls to the business services as multiple
remote calls to the services increases the network traffic and decreases the performance.
and the structure to both the patterns is
Client <---> Session Facade <---> Business Objects
Client <---> Business Delegate <---> Business Objects
The differences that i came with are ( i am not sure if they are right )
- A Session Facade is implemented as a session bean where as a Business delegate might not be a session bean.
- A Business delegate can be used as a proxy to the session facade.
I will post the summary of the responses that i get.
Ashish.