Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Design Patterns

 
Vrunda Joshi
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i have just finished the HFSJ book..and as i was solving the mock exam javaranch provides,it has questions about design patterns.It has Data Access and Value Object as it's options..these patterns are not mentioned in "HFSJ"..are these some new patterns or different names for existing patterns..i am too confused with patterns..can anyone please suggest some resource to read abt patterns(like how many patterns are there and description etc)

thanks in advance
-vrunda
 
Sai Patnala
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Link for graphical representation of Patterns: http://java.sun.com/blueprints/corej2eepatterns/Patterns/index.html
This is same book Core J2EE Patterns - Deepak Alur et al.

Java Blue Prints - Patterns catalog link: http://java.sun.com/blueprints/patterns/catalog.html

These so far are best resources for J2EE Design patterns.
 
Bryan Basham
author
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vrunda,

Yes, Data Access Object (or DAO) and Value Object are J2EE patterns and the reference Sai gave you is the best resource to locate these patterns. Neither of these patterns are required for the SCWCD v1.4 exam. If you see them on the exam or in a mock exam, then you can safely assume that these are "distractors".

BTW, Value Object is an old name and has been replaced by Data Transfer Object (DTO) or just Transfer Object.

-Bryan
 
shanthisri mocherla
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I've found a question on design patterns(chapter 14) in HFSJ having the following options
1.Domain Activator
2.Intercepting Observer
3.Composite Delegate
4.Transfer Facade

The question is
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 requirements??

Can anybody let me know whether these patterns are there for the exam?
Thanks for your help
Shanthi
[ November 29, 2005: Message edited by: shanthisri mocherla ]
 
Bert Bates
author
Sheriff
Posts: 8905
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Vrunda Joshi
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
thanks sai k patnala & bryan ,but i am still not clear abt which patterns are for exam,can anyone help me on that...

thanks
-vrunda
 
Pranav Shukla
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vrunda,

Section 11 : J2EE Patterns from sun's website.

Scroll down to the bottom of the page you will find this...


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.
 
Bert Bates
author
Sheriff
Posts: 8905
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
will anyone answer shanthisri's question?
 
Rizwan Mohammad
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shanthisri & Vrunda,
According to scwcd objectives, following patterns are there in the exam. You may not get other patterns for the exam.
Just concentrate on these for the exam. In the mock exam question answers,none of them are in the exam..In HFSJ mock exam questions, many things you can find which are not there in the exam.

Have a look at
 
Rizwan Mohammad
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Shanthisri & Vrunda,
Sorry for above incomplete post..
According to scwcd objectives, following patterns are there in the exam. You may not get other patterns for the exam.
  • 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.

  • Just concentrate on these for the exam. In the mock exam question answers, which you have given above, none of them are in the exam..In HFSJ mock exam questions, many options you can find which are not there in the exam.
    Have a look at SCWCD1.4 Objectives
     
    shanthisri mocherla
    Ranch Hand
    Posts: 119
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi Rizwan and Bert,
    Thanks for your response.I've gone through the objectives and I know that there are 6 design patterns for the exam,But,after going through the chapter 14(Design patterns)mock exam.I got little bit confused.That's why i wanted to make sure .
    Thank you very much for your help.

    ..shanthi
     
    Bert Bates
    author
    Sheriff
    Posts: 8905
    5
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Can't anyone help shanthisri with the question he posted?
     
    Jayne Fernandes
    Greenhorn
    Posts: 8
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi

    I recently had my exam and there were questions with �strange� design patterns in some answers. I said �strange� because I only know about the six patterns that are in the exam (for now�).

    Different design patterns do appear in the exam, but they are there only as �distractors� as Bryan said. Don�t worry about them.

    Jayne. SCJP 1.5 SCWCD 1.4
     
    Rizwan Mohammad
    Ranch Hand
    Posts: 445
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Bert,
    I tink you only can answer shantishris question. when i came across that question in HFSJ, just i ignored as that is not part of scwcd syllabus and luckily i didnt get any questions on design patterns which are not there in HFSJ.
     
    Narendra Dhande
    Ranch Hand
    Posts: 951
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi Bert,

    This is a buck question in the book. I think this was discussed in this forum earlier. There is some prize related to question.

    Thanks
     
    Narendra Dhande
    Ranch Hand
    Posts: 951
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi Bert,

    The answer to this question is Here

    Thanks
     
    Bert Bates
    author
    Sheriff
    Posts: 8905
    5
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Okay guys, it was a joke question, just to see if you were awake I promise, it's the only joke question in the whole book! You really, really, really can trust the Sun objectives, if you get a question that uses a pattern not on the official list, you can assume it's a distractor. Study the "big 6" and you'll do great.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic