It's not a secret anymore!
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Difference between business delegate and session facede? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Difference between business delegate and session facede?" Watch "Difference between business delegate and session facede?" New topic

Difference between business delegate and session facede?

Peter Lee

Joined: Jun 25, 2003
Posts: 24
Dear All,
Could anyone tell me the difference between business delegate and session facade? I found that both are very much alike.
Nagendra Inuguri
Ranch Hand

Joined: Jan 08, 2004
Posts: 76
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.
SCJP1.4, SCWCD 1.3

Denis Wang
Ranch Hand

Joined: Jan 23, 2004
Posts: 81
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

Joined: Mar 17, 2000
Posts: 5782
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.

Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
subject: Difference between business delegate and session facede?
It's not a secret anymore!