Starting and stopping message flows at periodic intervals

This scenario describes how you can use the WebSphere® Message Broker Monitoring Agent to automatically start and stop message flows at certain times of the day.

You can use situations and take action commands to start and stop individual message flows or to start and stop all the message flows within an execution group.

For individual message flows

To start or stop individual message flows at intervals, after you have configured the WebSphere Message Broker Monitoring Agent, start the agent so that you can gather the necessary statistics, and then perform the following procedure:

  1. Define a situation for the Status attribute in the Message Flow Status workspace/Message Flow Information workspace. Use the Local Time attribute group to specify when a message flow must be started or stopped.
  2. Set the action for the situation to use the QI Start Message Flow(s) or QI Stop Message Flow(s) command to start or stop the message flow; specify both the execution group name and the message flow name.

For all message flows within an execution group

To start or stop all message flows within an execution group at intervals, after you have configured the WebSphere Message Broker Monitoring Agent, start the agent so that you can gather the necessary statistics, and then do the following steps:

  1. Define a situation for the Started Message Flows attribute in the Execution Group Status workspace/Execution Group Information workspace. Use the Local Time attribute group to specify when all message flows in the execution group must be started or stopped.
  2. Set the action for the situation to use the QI Start Message Flow(s) or QI Stop Message Flow(s) command to start or stop all message flows. Specifying only the execution group name argument and do not specify a message flow name argument.