• Post Reply Bookmark Topic Watch Topic
  • New Topic

business delegate & session facade  RSS feed

 
trupti nigam
Ranch Hand
Posts: 640
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
What is the diference between the two. Both seems so much similar.
Thanks,
Trupti
 
Steve Chernyak
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From what I understand a Business Delegate resides on the presentation tier or some other layer that is a "client" to the business layer. It decouples the presentation tier from the business tier.
Session Facade resides on the business tier and provides an interface for executing applications business logic. It abstracts the clients from the application logic within the business tier.
A web application will invoke methods on the Business Delegate. The Business Delegate will then be responsible for converting the data in the request to what is expected by the business logic layer, invoking business logic, and returning the result. On the business logic side this request will be received by a Session Facade that will execute the request and produce a responce.
Thats the way I understand it.
Im interested in hearing what others have to say
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Business delegate reduces the coupling between presentation tier and business service. This pattern hides the implemantation details of EJB lookup ands architecture. I don't think "decouple" is the right word..reduction in coupling is the right word. Does anyone disagree?
Originally posted by Steve Chernyak:
From what I understand a Business Delegate resides on the presentation tier or some other layer that is a "client" to the business layer. It decouples the presentation tier from the business tier.
Session Facade resides on the business tier and provides an interface for executing applications business logic. It abstracts the clients from the application logic within the business tier.
A web application will invoke methods on the Business Delegate. The Business Delegate will then be responsible for converting the data in the request to what is expected by the business logic layer, invoking business logic, and returning the result. On the business logic side this request will be received by a Session Facade that will execute the request and produce a responce.
Thats the way I understand it.
Im interested in hearing what others have to say

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!