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

HF - Most difficult Q on patterns

 
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I heard .
Domain Controller
Intercepting Filters
Composite Object/Views
Transfer Object , Session Facade

Thanks
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1066
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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?
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
oops, i should have done a search before posting.

this question was already dealt with on this forum:

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

david chait scjp, scbcd
 
David Chait
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
this question was answered in another posting:

https://coderanch.com/t/168245/java-Web-Component-SCWCD/certification/HF-page-number
 
author
Posts: 9050
21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic