• Post Reply Bookmark Topic Watch Topic
  • New Topic

Which one between Session Facade and Business Delegate ?  RSS feed

 
Rolando jimenze
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have found very useful tips on this forum about part II.
I'm deciding what kind of facade will be presented to the client to hide the complexity of distributed components.
I have started using this appoach:

Servlet Controller->Business Delegate->Service Locator->DAO->Service

Some other guys on this forum have used Session Facade rather then the Business Delegate pattern. I wonder if they can be used together or
one exclude the other....
IMHO I cannot see a real difference between this two patterns....
Thanks
Rol
 
Santiago Urrizola
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you are a litle confused

Servlet Controller -> BD -> Service Locator -> Facade -> DAO

or

Servlet Controller -> BD -> Service Locator -> Facade -> Entity -> DAO
(if you choose BMP)
 
Ricardo Ferreira
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to read more the J2EE Design patterns catalog. I think that you're a little bit confused about patterns usage and a could be useful you read more.

Best Regards!
 
Alex Li
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The Business Delegate acts as a client-side business abstraction in web tier. It provides an abstraction and hide the implementation of accessing business services. Using a Business Delegate reduces the coupling between presentation-tier clients and the system's business services.

The Session Facade abstracts the underlying business object interactions and provides a service layer that exposes only the required interfaces. It is located in business logic tier.

So the two patterns can be used together without conflict.

Hope this help.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!