+

Search Tips   |   Advanced Search

Messaging between two application servers through IBM MQ

Use IBM MQ links to send a WebSphere Application Server message from one application server to another through an IBM MQ network.

We can exchange messages between two application servers through an intermediate IBM MQ network, as shown in the following figure:

In this case, the IBM MQ network includes two gateway queue managers. One connects to the local bus using an IBM MQ sender-receiver pair of message channels, known to the local bus as an IBM MQ link. The other connects to the indirect foreign bus using another IBM MQ sender-receiver pair of message channels, known to the indirect foreign bus as an IBM MQ link. In the simplest case, the same gateway queue manager connects to both the local bus and the indirect foreign bus.

The IBM MQ network must be configured to route messages as required between the local bus and the indirect foreign bus. Details of this configuration are not normally important to WAS administrators, but can be found in IBM MQ Intercommunication.

Configuration and operation of messaging between two service integration buses through an intermediate IBM MQ network is more straightforward if we choose bus names that comply with IBM MQ queue manager naming restrictions, and if we choose bus destination names that comply with IBM MQ queue naming restrictions:

While messages are being transported through the IBM MQ network, important context information is transported in the MQRFH2 header. Configure the application so that the MQRFH2 header is included.

Messages with topic style reply-to destinations must have the appropriate publish/subscribe bridge topic mappings defined in the relevant direction so that reply messages can be transferred between an IBM MQ network and WAS. This is not automatic, as it is for messages with queue reply destinations.