Before you can start developing publish/subscribe applications, you need to choose the broker to use and set that broker up to run the WebSphere MQ JMS.
WebSphere(R) MQ offers the following choice of brokers:
Note, however, that broker based subscription stores are not supported by WebSphere MQ Integrator. For more information about subscription stores, see Subscription stores.
This has implications for the implementation of the JMS specification for direct connections to a broker:
Refer to WebSphere MQ JMS API reference for specific information on each publish and subscribe interface.
Broker setup depends on the broker you intend to use and how you intend to use it. Each broker provides its own documentation describing installation and setup. However, for convenience and because of WebSphere MQ JMS requirements, some setup instructions are given here.
This section applies to a WebSphere MQ Publish/Subscribe broker or a broker of WebSphere MQ Integrator. It also applies to a broker of WebSphere MQ Event Broker, WebSphere Business Integration Event Broker, or WebSphere Business Integration Message Broker if you choose to connect to the broker using WebSphere MQ.
Each broker requires its own queue manager. Refer to the broker's documentation regarding installation and setup.
For the WebSphere MQ JMS publish/subscribe implementation to work correctly, a number of system queues must be created on the queue manager on which the broker is running. Create these message queues on each queue manager for each broker you want to run WebSphere MQ JMS. WebSphere MQ JMS provides a script that creates these queues (see Create the WebSphere MQ JMS system queues).
Run the script to create the system queues. If you are using the WebSphere MQ Publish/Subscribe broker, your broker is now fully configured. To check that the broker is correctly configured, run the publish/subscribe verification as described in Publish/subscribe verification without JNDI.
If you are using a broker of WebSphere MQ Integrator, WebSphere MQ Event Broker, WebSphere Business Integration Event Broker, or WebSphere Business Integration Message Broker, configure a publish/subscribe message flow in the broker for messages to be correctly routed. The method for creating the required message flow is similar in both cases. Refer to Appendix C. Connecting to other products for details.
This is possible only when you use the broker provided in WebSphere MQ Event Broker, WebSphere Business Integration Event Broker, or WebSphere Business Integration Message Broker. Because the connection to this broker is made directly, no system queues are required. However, you must set up a publish/subscribe message flow in the broker for messages to be correctly routed. Refer to Appendix C. Connecting to other products for details.
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
csqzaw1369 |