• 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

Design Pattern Mock Question

 
Ranch Hand
Posts: 569
  • 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 ]
 
Ranch Hand
Posts: 155
  • 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 ]
 
Ranch Hand
Posts: 72
  • 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
  • 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 ]
 
Ranch Hand
Posts: 378
  • 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:
 
Ranch Hand
Posts: 130
  • 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
 
What kind of corn soldier are you? And don't say "kernel" - that's only for this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic