aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HF - Most  difficult Q on patterns Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "HF - Most  difficult Q on patterns" Watch "HF - Most  difficult Q on patterns" New topic
Author

HF - Most difficult Q on patterns

Vishwa Kumba
Ranch Hand

Joined: Aug 27, 2003
Posts: 1064
HF book, p:752, chap: 14 on patterns.

Question: 3

Your company wants to leverage its distributed silos. Your job is to seamlessly integrate your application's web service endpoints with its DAOs. In addition , your coarse-grained Controller Locators must be enhanced to support J2ME, UDDI registries.

Which design pattern can be used to achieve these design requiremnets?

A. Domain Activator
B. Intercepting Observer
C. Composite Delegate
D. Transfer Facade

My first reaction was . Then I realised the HF book's title is not HF SCWCD. The authors were trying to teach us a new pattern in their usual style but not covered by the exam.

Can Sombody explain this Q and the answer?
Narendra Dhande
Ranch Hand

Joined: Dec 04, 2004
Posts: 950
Hi,

I didin't heard the lot of patterns patterns specified in the Q options. But if the HF decided to name this pattern I sure it must be composite delegate as one pattern try to cover all the layers ( As a pattern is logical thing, anybody can define their own pattern which suite their own need). In my opinion some MVC like architecture is best fit for this problem.

What is the answer given in the book ?

Thanks


Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
Narendra Dhande
Ranch Hand

Joined: Dec 04, 2004
Posts: 950
Hi
I heard .
Domain Controller
Intercepting Filters
Composite Object/Views
Transfer Object , Session Facade

Thanks
Vishwa Kumba
Ranch Hand

Joined: Aug 27, 2003
Posts: 1064
The given answer is C. (Composite Pattern).

The exam covers the foll. patterns:

http://www.sun.com/training/catalog/courses/CX-310-081.xml

Section 11: J2EE Patterns

----------------------------------------------------------------------------

Given a scenario description with a list of issues, select a pattern that would solve the issues. The list of patterns you must know are: Intercepting Filter, Model-View-Controller, Front Controller, Service Locator, Business Delegate, and Transfer Object.
Match design patterns with statements describing potential benefits that accrue from the use of the pattern, for any of the following patterns: Intercepting Filter, Model-View-Controller, Front Controller, Service Locator, Business Delegate, and Transfer Object.
Vishwa Kumba
Ranch Hand

Joined: Aug 27, 2003
Posts: 1064
Originally posted by Narendra Dhande:
But if the HF decided to name this pattern I sure it must be composite delegate as one pattern try to cover all the layers.


That seems to be a lucky guess!
Can you throw some more light on this?
David Chait
Greenhorn

Joined: May 10, 2004
Posts: 5
the headfirst answer gives a reference in "core j2ee paterns" which can be found at the book's website: http://www.corej2eepatterns.com/index.htm

that website has a catalog of j2ee patterns: http://www.corej2eepatterns.com/Patterns2ndEd/index.htm

you will notice that the 'composite delegate' is not listed on the website.
and, as Vishwa Kumba pointed out, this pattern is not covered by the scwcd exam requirements. also, the other three choices to this question are not listed at the core j2ee website either.

my feeling is that, for purposes of exam preparation, we have to just ignotre this question. can someone confirm this?


David Chait<br />scjp 75%, scbcd 90%
David Chait
Greenhorn

Joined: May 10, 2004
Posts: 5
oops, i should have done a search before posting.

this question was already dealt with on this forum:

http://www.coderanch.com/t/168245/java-Web-Component-SCWCD/certification/HF-page-number

david chait scjp, scbcd
David Chait
Greenhorn

Joined: May 10, 2004
Posts: 5
this question was answered in another posting:

http://www.coderanch.com/t/168245/java-Web-Component-SCWCD/certification/HF-page-number
Bert Bates
author
Sheriff

Joined: Oct 14, 2002
Posts: 8815
    
    5


Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Vishwa Kumba
Ranch Hand

Joined: Aug 27, 2003
Posts: 1064
I am not sure if I am allowed to disclose this.

To my surpise, I thought, I got this exact question, when I took the actual exam a couple of days ago!!!What a coincidence!

I never understood this question before, hence didn't bother to read it completely. I could remember the words in the question and the answer given in the HF book, so was about to select the Composite Delegate pattern. But since, I had lots of time in the exam, I marked this question and came back to it at the end. When I re-read the question, the question appeared to be slightly different from what was given in the HF book! The answer was one of the patterns covered by the exam objectives! In fact, a very easy one!......

I must admit, that was very smart by the exam authors! But luckily I didn't fall for it!
 
jQuery in Action, 2nd edition
 
subject: HF - Most difficult Q on patterns