Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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

Which one between Session Facade and Business Delegate ?

 
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.
 
I got this tall by not having enough crisco in my diet as a kid. This ad looks like it had plenty of shortening:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic