When you mediate a service integration bus destination, your mediation runs in a bus member (the "mediation execution point") and you specify a combination of mediation points and queue points to handle the messages that are mediated. When you interoperate with WebSphere® MQ using WebSphere MQ server, you can use one of several mediated exchange scenarios.
Queue-type destinations assigned to a WebSphere MQ server bus member can be mediated in much the same way as destinations assigned to other bus members. In addition to the mediation task described in Mediating a destination using a WebSphere MQ queue as the mediation point, WebSphere MQ server supports other mediation scenarios that you also set up using the administrative console Mediation wizard.
WebSphere MQ server supports the following mediated exchange scenarios:
Alternatively (scenario 4) you can use a WebSphere MQ application or a WebSphere Message Broker flow to mediate the destination. In this case, the application or broker flow retrieves messages from the mediation point (which is a WebSphere MQ queue), mediates the messages, then places the mediated messages on the queue point (which is also a WebSphere MQ queue). You do not specify a mediation execution point when you configure the mediation; instead, you specify that there is an external mediation process.
For a queue point, message producers place messages on the queue point and consumers receive messages from the queue point. For a mediation point, message producers place messages on the mediation point. The messages are mediated then put on a post-mediation queue point. Consumers receive messages from the post-mediation queue point.
For a queue point, message producers place messages on the queue point and consumers receive messages from the queue point. If the queue point is a WebSphere MQ queue point, message producers place messages on the WebSphere MQ queue and consumers receive the messages from the WebSphere MQ queue. For a mediation point, message producers place messages on the mediation point (a WebSphere MQ queue). The messages are mediated, perhaps by an external WebSphere Message Broker flow, then put on a post-mediation queue point (another WebSphere MQ queue). Consumers receive messages from the post-mediation queue point.
The following table describes the mediated exchange scenarios in more detail:
Scenario | How messages are processed | Steps to complete in the Mediation wizard |
---|---|---|
Scenario 1: Mediate a conventional queue-type destination where the queue point is a service integration queue point, and assign a WebSphere MQ queue as the mediation point (the input side of the destination). As the mediation point is a WebSphere MQ queue, a queue point must also be specified. |
Messages arriving at the WebSphere MQ queue are processed by the mediation running in an application server. When the messages have been processed by the mediation, they are placed onto the service integration queue point. The mediation itself runs in the service integration bus member that is assigned as the mediation point. |
This example assumes that the destination is assigned to a service integration bus member:
|
Scenario 2: Mediate a WebSphere MQ queue type, with a WebSphere MQ queue point, and assign a WebSphere MQ queue as the mediation point (the input side of the destination). As the mediation point is a WebSphere MQ queue, a mediation execution point must also be specified. |
Messages arriving at the destination are processed by the mediation, then placed on the WebSphere MQ queue. The mediation itself runs in the service integration bus member that is assigned as the mediation point. |
This example assumes that the destination is assigned to a WebSphere MQ server bus member:
|
Scenario 3: Mediate a WebSphere MQ queue type and assign a service integration mediation point. |
Messages arriving at the destination are processed by the mediation, then placed on the WebSphere MQ queue. The mediation itself runs in the service integration bus member that is assigned as the mediation point. |
This example assumes that the destination is assigned to a WebSphere MQ server bus member:
|
Scenario 4: Mediate a WebSphere MQ queue-type destination and assign a WebSphere MQ queue as the mediation point (the input side of the destination). The mediation of messages is performed by an external process. |
Messages arriving at the WebSphere MQ queue are processed by an external process, then placed by the external process on the WebSphere MQ queue-type destination. |
This example assumes that the destination is assigned to a WebSphere MQ server bus member:
|