WAS v8.5 > WebSphere applications > Messaging resources > Interoperation with WebSphere MQ > Interoperation using a WebSphere MQ link

Messaging between two application servers through WebSphere MQ

We can use WebSphere MQ links to send a WAS message from one application server to another through a WebSphere MQ network.

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

Figure 1. Exchanging messages between two application servers through an intermediate WebSphere MQ network.

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

The WebSphere 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 WebSphere MQ Intercommunication.

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

While messages are being transported through the WebSphere MQ network, important context information is transported in the MQRFH2 header. You must configure the application so 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 a WebSphere MQ network and WAS. This is not automatic, as it is for messages with queue reply destinations.


+

Search Tips   |   Advanced Search