• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Design Pattern Mock Question

 
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
[Moderator's note: The mock exam question is from a dump that illegally uses real questions so the question was removed. - Marc Peabody]

===
None of them seem relevant???
[ May 26, 2007: Message edited by: Marc Peabody ]
 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Answer is Business Delegate... I saw the same question in [Moderator's note: The mock exam mentioned illegally uses real questions. The name was removed. - Marc Peabody] also
[ May 26, 2007: Message edited by: Marc Peabody ]
 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Business Delegate is the best choice to reduce the load. I have done the same in one of my project.

Thanks.
 
Alec Lee
Ranch Hand
Posts: 569
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But as far as i know, Business Delegate is for shielding the web tier that the business object is remote. So in above scenario, if all the business objects are local objects (e.g. local EJBs or some local POJOs), Business Delegate doesnt seem to be applicable? At least, it does not seem to provide any benefit.

This is a [Moderator's note: The mock exam mentioned illegally uses real questions. The name was removed. - Marc Peabody] question and the given answer is business delegate. But, I don't trust their answers and as far as I know, many are wrong.
[ May 26, 2007: Message edited by: Marc Peabody ]
 
Ranch Hand
Posts: 378
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


javaranch.com hired an outside consultant to develop their web application. To finish the job quickly, the consultant created several dozen JSP pages that directly communicate with the database. The javaranch.com business team has since purchased a set of business objects to model their system, and the Squeaky developer charged with maintaining the web application must now refactor all the JSPs to work with the new system.


its Business Delegate i supposed. because the question said about dozens of JSP and must now refactor all the JSPx to work with the new system. From this, and also according to HFSJ page 746, box "Business Delegate principles - minimuze the impact on the web tier when changes occur on the business tier "....so Business Delegate is more relavant to above case. :roll:
 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is business delegate as your first try would be to design a component which may work as a delegator from the JSP to the Business Logic component. Correct me if I am wrong
 
He does not suffer fools gladly. But this tiny ad does:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic