This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "design pattern - mock question" Watch "design pattern - mock question" New topic
Author

design pattern - mock question

suekar meredilko
Ranch Hand

Joined: Mar 27, 2006
Posts: 153
A company is building a J2EE based application for Order Entry and management of their custom software. Once the order is taken, it is submitted to a relational database. A provisioning system then queries data and makes appropriate calls to various subsystems using JMS on MQ Series. What design pattern is JMS an example of here?


The options are : Observer, Mediator, Adapter, Bridge, Visitor

The answer is Bridge.

Why is it so ? I feel its none of them. Mediator is close because to a certain extent because appropriate calls are de-coupled from the order entry part.

Pls explain ... thanks.
Santiago Urrizola
Ranch Hand

Joined: Apr 27, 2006
Posts: 172
i think the key in the question is "various subsystems" ... so the bridge is the answer
Mediator, are used to decouple the comunication betwen two (or more objects)
Observer, Visitor .. of corse none of them ...
Adapter, Convert an interface not knowed by the client into another interface client expects" ...to relation two class but one of them have an interface not knowen by the first ... when you need to use an existing library with oder interface than you expected ...
Bridge,Decouple an abstraction from its implementation ... the abstracion interact with provisioning system ... implementation .. make various calls to sybsystems in JMS on MQ-Series

I hope that it is of aid for you


Santiago Urrizola : La Plata - Argentina<br />SCEA (89%-92%)<br /><a href="http://gpitech.wordpress.com/" target="_blank" rel="nofollow">http://gpitech.wordpress.com/</a>
suekar meredilko
Ranch Hand

Joined: Mar 27, 2006
Posts: 153
thanks santiago!
suekar meredilko
Ranch Hand

Joined: Mar 27, 2006
Posts: 153
actualy jms is an abstraction and implementation is MQ, Others could be AQ, Sonic, TIBCO and so on.
Santiago Urrizola
Ranch Hand

Joined: Apr 27, 2006
Posts: 172
yes you are right suekar.
 
Consider Paul's rocket mass heater.
 
subject: design pattern - mock question
 
Similar Threads
Design Pattern vague question
Is this a bridge pattern?
Mock on JMS and Design Patterns
A confusing answer...
Need help with Patterns