File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Design Pattern Mock Question

 
Alec Lee
Ranch Hand
Posts: 569
  • 0
  • Mark post as helpful
  • send pies
  • 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 ]
 
vijaya bacina
Ranch Hand
Posts: 155
  • 0
  • Mark post as helpful
  • send pies
  • 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 ]
 
Kalyani Marathe
Ranch Hand
Posts: 72
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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 ]
 
Nicky Eng
Ranch Hand
Posts: 378
  • 0
  • Mark post as helpful
  • send pies
  • 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:
 
Bimal Patel
Ranch Hand
Posts: 130
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic