IBM MQ server and mediated exchange scenarios
When you mediate a service integration bus destination, your mediation runs in a bus member and you specify a combination of mediation points and queue points to handle the messages that are mediated. When you interoperate with IBM MQ by using IBM MQ server, you can use one of several mediated exchange scenarios.
Queue-type destinations assigned to a IBM MQ server bus member can be mediated in the same way as destinations assigned to other bus members. In addition to the mediation task described in Mediating a destination by using a IBM MQ queue as the mediation point, IBM MQ server supports other mediation scenarios that you also set up by using the administrative console Mediation wizard.
- Mediation point
- The location where messages are placed before they are mediated. It can be either a service integration bus member (an application server or a cluster) or a IBM MQ queue.
- Queue point
- The location where messages are placed after they have been mediated. It can be either a service integration bus member (an application server or a cluster) or a IBM MQ queue. If there is a default forward routing path and the destination is a queue type destination, the queue point is unused. If the destination is a service type destination, the queue point is absent.
- Mediation execution point
- The server where the mediation process runs. If the mediation point is a service integration bus member then the mediation execution point is the same bus member as the mediation point.
IBM MQ server supports the following mediated exchange scenarios:
- Scenario 1: A IBM MQ mediation point and a service integration queue point. In this case, you must specify the mediation execution point.
- Scenario 2: A IBM MQ mediation point and a IBM MQ queue point. In this case, you can use a service integration mediation; you must specify the mediation execution point when you configure the mediation, as for scenario 1.
- Scenario 3: A service integration mediation point and a IBM MQ queue point. In this case, you do not have to specify the mediation execution point; WebSphere® Application Server automatically allocates the bus member in which the mediation runs.
- Scenario 4: Alternatively, you can use a IBM MQ application or a message broker flow to mediate the destination. In this case, the application or broker flow retrieves messages from the mediation point (which is a IBM MQ queue), mediates the messages, then places the mediated messages on the queue point (which is also a IBM 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 IBM MQ queue point, message producers place messages on the IBM MQ queue and consumers receive the messages from the IBM MQ queue. For a mediation point, message producers place messages on the mediation point (a IBM MQ queue). The messages are mediated, perhaps by an external message broker flow, then put on a post-mediation queue point (another IBM MQ queue). Consumers receive messages from the post-mediation queue point.

Scenario 1
In this scenario, you want to mediate a conventional queue-type destination where the queue point is a service integration queue point, and assign a IBM MQ queue as the mediation point (the input side of the destination). As the mediation point is a IBM MQ queue, a queue point must also be specified.
Messages arriving at the IBM 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.
- Navigate to the destinations collection panel for the bus that hosts the destination you want to mediate.
- Select the queue-type destination that you want to mediate, then click Mediate. This starts the Mediate destination wizard.
- Step 1: Select the mediation that you want to use to mediate the service integration destination.
- Step 2: Select a IBM MQ server bus member to host the mediation point.
- Step 3: Enter details of the IBM MQ queue that will be the mediation point.
- Step 4: Select a bus member where you want the mediation code to run.
- Step 5: Review the summary of changes you are about to make, then click Finish.
Scenario 2
In this scenario, you want to mediate a IBM MQ queue type, with a IBM MQ queue point, and assign a IBM MQ queue as the mediation point (the input side of the destination). As the mediation point is a IBM MQ queue, a mediation execution point must also be specified.
Messages arriving at the destination are processed by the mediation, then placed on the IBM MQ queue. The mediation itself runs in the service integration bus member that is assigned as the mediation point.
- Navigate to the destinations collection panel for the bus that hosts the destination you want to mediate.
- Select the queue-type destination that you want to mediate, then click Mediate. This starts the Mediate destination wizard.
- Step 1: Select the mediation that you want to use to mediate the service integration destination.
- Step 2: Select a IBM MQ server bus member to host the mediation point.
- Step 3: Enter details of the IBM MQ queue that will act as the mediation point.
- Step 4: Select the service integration bus member where you want the mediation to run.
- Step 5: Review the summary of changes you are about to make, then click Finish.
Scenario 3
In this scenario, you want to mediate a IBM MQ queue type and assign a service integration mediation point.
Messages arriving at the destination are processed by the mediation, then placed on the IBM MQ queue. The mediation itself runs in the service integration bus member that is assigned as the mediation point.
- Navigate to the destinations collection panel for the bus that hosts the destination you want to mediate.
- Select the queue-type destination that you want to mediate, then click Mediate. This starts the Mediate destination wizard.
- Step 1: Select the mediation that you want to use to mediate the service integration destination.
- Step 2: Select the service integration bus member to host the mediation point. The mediation code also runs in this bus member.
- Step 3: Review the summary of changes you are about to make, then click Finish.
Scenario 4
In this scenario, you want to mediate a IBM MQ queue type destination and assign a IBM 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 IBM MQ queue are processed by the external process, then placed by the external process on the IBM MQ queue-type destination.
- Navigate to the destinations collection panel for the bus that hosts the destination you want to mediate.
- Select the queue-type destination that you want to mediate, then click Mediate. This starts the Mediate destination wizard.
- Step 1: Select an external process to use for mediating the destination.
- Step 2: Enter details of the IBM MQ queue that you want to act as the mediation point.
- Step 3: Review the summary of changes you are about to make, then click Finish.