• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Design Patterns clarification needed..Please Help.

 
Ranch Hand
Posts: 603
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Java Experts and Moderators of the forum,
I have the below queries.Please clarify the below for me


1> what are the difference's between session facade and business delegate design pattern?

2> when do we opt(go in for) for business delegate design pattern?

3> when do we opt(go in for) for session facade design pattern ?

--
Deepak Lal
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you had a read through the documentation Sun provides about patterns? Its a pretty good place to start.
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A simple answer would be

Session facade Pattern applies to Entity beans you write a session bean and give access to session bean for performing DB operation instead of Entity bean directly because exposing entity beans is not recommended as they represent DB there would not be any control over the operation from client.

Business Delegate pattern is when you want to do multiple tasks as a part of service you can have a delegated bean(can be event a normal Java Bean) for each task and call the respective task on each delegate this will keep the Main session bean simple and the main bean would not be doing all the complex logic.
 
Deepak Lal
Ranch Hand
Posts: 603
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
any more differences.??

--
Deepak Lal
 
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Deepak Lal, when you compare what you have learned to the information shared in this post, what differences have you discovered? Can you provide a definition for the Business Delegate design pattern? If so, please share.
 
ice is for people that are not already cool. Chill with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic