Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between business delegate and session facede?

 
Peter Lee
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,
Could anyone tell me the difference between business delegate and session facade? I found that both are very much alike.
Thanks.
Peter
 
Nagendra Inuguri
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Business Delegate is used to hide the business service implementation in the business layer. Session Facade is used to encapsulate the complexity of interactions between the business objects. Business Delegate can use a Session Facade to service the presentation tier component.
What I mean is Business delegate is like a bridge between Presentation Tier and the Business Tier. Session Facade completely belongs to Business Tier. Hope this clears your question.
Regards,
Nagendra
SCJP1.4, SCWCD 1.3
 
Denis Wang
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
presentation logic -> business delegate -> session facade -> ejb logic
business delegate is there to decouple the presentation logic with the specific implementation of ejb. in the future if you want to switch to ejb++, the modification is supposed to be transparent to the presentation.
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Facade(s) act as common entry points to business services. They also help reduce network traffic by eliminiating the need for the clients to invoke multiple finegrained methods.
Business delegates( and delegates in general ) provide a cleanway for the clients to interact with the service layer. They hide complex things such as service lookups, error handling, remoteness of the service etc. They can also implement additional services such as client caching, thread synchronization, service selection and request routing.
Cheers,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic