• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is this a bridge pattern?

 
Glen Vermeylen
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I've been lurking these forums from time to time (they helped a lot during my scjp, scwcd and scbcd certification, so thanks a lot), but now it's time for my first question here...

Currently I'm preparing for the SCEA exam and found this free mock exam from exforsys through javarabbit. I've noticed the questions are all a bit amateuristic, as if they were collected from a bunch of different locations.

Now I come across this question and the solution seems completely incorrect:

Q:
ABC Inc. is building a J2EE based application for Order Entry and management of their fractal 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 subystems using JMS on MQ Series. What design pattern is JMS an example of here?

A:
Bridge Pattern

I understand the explanation of Bridge in the GoF book: A bridge connects the abstractions with the implementations when both can vary. This basically happens while using awt if you would create for instance custom labels which all extend java.awt.Label, and the jre provides the variation of the implementation by rendering the label correctly on each platform.
But in the above question there seem to be no variations in the abstraction, at best in the implementation ("appropriate calls to various subsystems").

Is there anyone that can clarify this?

Thank you,
- Glen
[ June 25, 2008: Message edited by: Glen Vermeylen ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic