File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Design Pattern Mock Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Design Pattern Mock Question" Watch "Design Pattern Mock Question" New topic
Author

Design Pattern Mock Question

Alec Lee
Ranch Hand

Joined: Jan 28, 2004
Posts: 569
[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

Joined: Aug 23, 2005
Posts: 155
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

Joined: Apr 06, 2005
Posts: 72
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

Joined: Jan 28, 2004
Posts: 569
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

Joined: Mar 26, 2005
Posts: 378

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:


From NickyEng
Diploma in Computer Studies
SCJP 1.4
SCWCD 1.4
Formula 1 app by Maxis (Playbook)
Bimal Patel
Ranch Hand

Joined: Aug 29, 2003
Posts: 130
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


Work Hard, Expect The Worst...<br /> <br />Bimal R. Patel<br />(SCJP 1.2, SCWCD 1.4)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Design Pattern Mock Question
 
Similar Threads
c:if doubt
Mock exam answers!!!
MOCK TEST required
Sessions and cookies
... vs WhizsLab (310-081)