Julia Fractals 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 subsystems using JMS on MQ Series. What design pattern is JMS an example of here?
-
Observer
-
Mediator
-
Adapter
-
Bridge
-
Visitor
D
Correct answer
Explanation
The Bridge pattern separates abstraction from implementation, allowing them to vary independently. JMS acts as a bridge between the Order Entry application and various subsystems by providing a messaging layer that decouples the producer from consumers. Observer is about one-to-many dependencies, Mediator centralizes communication, Adapter converts interfaces, and Visitor separates operations from object structure.