WebSphere Message Brokers
File: ac30110_
Writer: Catherine Tucker

Reference topic

This build: July 31, 2007 21:19:59

Sending a message after a timed interval

This topic describes how to use TimeoutControl and TimeoutNotification nodes to send a message into a message flow after a timed interval.

Aim

Use TimeoutControl and TimeoutNotification nodes to send a message into a message flow 60 seconds after the message is received.

Description of the flow

The diagram shows a timeout request message, and some of the values contained in the message, passing through a TimeoutControl. There is also a TimeoutNotification node with the same identifier as the TimeoutControl node. A description of the diagram is given in the text.

The diagram shows the path of a message that contains a timeout request through a TimeoutControl node. A TimeoutNotification node with an identifier matching the TimeoutControl node then processes the timeout request. The diagram also shows the message that the TimeoutNotification node produces after processing the timeout request.

The message comes into the TimeoutControl node with the following values set in the timeout request section of the message:
  • Action set to SET
  • Start Time set to current time + 60
  • Count set to 1

The TimeoutControl node validates the timeout request; default values are assumed for properties that are not explicitly defined. The original message is then sent on to the next node in the message flow. If the request is valid, the TimeoutNotification node with the same Unique identifier as the TimeoutControl node propagates a copy of the message to the message flow 60 seconds after the message was received.

Refer to the following sample for further details on constructing this type of message flow. You can view samples only when you use the information center that is integrated with the Message Brokers Toolkit.
Related concepts
Handling TimeoutNotification errors
Related reference
Sending a message multiple times after a specified start time
Automatically generating messages to drive a flow
TimeoutControl node
TimeoutNotification node
Timeout request message
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2007Copyright IBM Corporation 1999, 2007. All Rights Reserved.
This build: July 31, 2007 21:19:59

ac30110_ This topic's URL is: