Folks,
Please have a look at the following question. I found this on a comeercial mock exam.
A financial institution is building a
J2EE based application for Order Entry and management of their equity 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?(Choose 2)
a. Observer
b. Mediator
c. Adapter
d. Bridge
e. Visitor
The answer that are given: c) Adapter & d) Bridge
I always knew any asynchronous messaging system to simulate the Observer or Mediator pattern, and am surprised to find this answer. I would like to the viewpoint of other Ranchers on this. Do you think there is [
B]really[/B] any logic which justifies the answers given? (Adapter & Bridge), Or this is just another case of unscrupulous typing mistake by the mock examiners?
Apart from this, would any of you kindly explain (preferably with examples) what is the difference between the Observer & Mediator patterns? (I don't require definitions). Both of these seem same to me, and it is difficult to choose betwen the two when given only one option.
Looking forward to hear your comments.
Regards