Home

 

Triggering channels

 

This explanation is intended as an overview of triggering concepts. You can find a complete description in the WebSphere MQ Application Programming Guide.

For platform-specific information see the following:

Figure 1. The concepts of triggering

The objects required for triggering are shown in Figure 1. It shows the following sequence of events:

  1. The local queue manager places a message from an application or from a message channel agent (MCA) on the transmission queue.

  2. When the triggering conditions are fulfilled, the local queue manager places a trigger message on the initiation queue.

  3. The long-running channel initiator program monitors the initiation queue, and retrieves messages as they appear.

  4. The channel initiator processes the trigger messages according to information contained in them. This information may include the channel name, in which case the corresponding MCA is started.

  5. The local application or the MCA, having been triggered, retrieves the messages from the transmission queue.

To set up this scenario, we need to:

  1. The channel initiator program acts as a 'trigger monitor' monitoring the initiation queue used to start channels.

  2. An initiation queue and trigger process can be used to trigger any number of channels.

  3. Any number of initiation queues and trigger processes can be defined.

  4. A trigger type of FIRST is recommended, to avoid flooding the system with channel starts.

 

Parent topic:

Making your applications communicate


ic10580_


 

Home