• 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Which one between Session Facade and Business Delegate ?  RSS feed

 
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
 
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)
 
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!
 
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!