Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Difference between business delegate and session facede?

 
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
 
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
 
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.
 
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,
 
Don't play dumb with me! But you can try this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic