Replaying data

When you have recorded data, you can replay it to a queue.

Before you begin

Configure your system to record data and to view the recorded data. See Recording data and Viewing recorded data.

About this task

You can replay data that you have recorded by using the IBM® Integration API or the web user interface.

Replaying data by using the IBM Integration API

Procedure

To replay data to a queue by using the IBM Integration API, complete the following steps:

  1. Use the DataDestination configurable service to define the queues to which you can replay data.

    Create the configurable service by using web user interface or the mqsicreateconfigurableservice command. You can set one destination for each instance of the DataDestination configurable service. This configurable service is dynamic, therefore you do not need to restart the integration node for changes to take effect.

    For a description of the properties that you set on this configurable service, see DataDestination configurable service.

  2. For an example of how to replay data with the IBM Integration API, see Recording and replaying data by using a custom integration application.

Replaying data by using a web browser

Procedure

To replay data to a WebSphere MQ queue from a web browser, complete the following steps:

  1. Use the DataDestination configurable service to define the WebSphere MQ queues to which you can replay data.

    Create the configurable service by using web user interface or the mqsicreateconfigurableservice command. You can set one destination for each instance of the DataDestination configurable service. This configurable service is dynamic, therefore you do not need to restart the integration node for changes to take effect.

    For a description of the properties that you set on this configurable service, see DataDestination configurable service.

  2. View your recorded data through the web user interface:
    1. Configure the web user interface, as described in Configuring the IBM Integration Bus web user interface.
    2. Use the mqsiwebuseradmin command to create your web user accounts. For information on how to do this, see Managing web user accounts.
    3. Log on to the web user interface (see Accessing the web user interface).
    4. When you have logged on to the web user interface, the Navigator view is displayed on the left side of the window. In the Navigator view, select the Data node. The data viewer is displayed on the right side of the window.
  3. Select the data capture store that contains the data that you want to replay.

    Only data stores for which the egForView property is set in the corresponding DataCaptureStore configurable service are available.

  4. Each row that is displayed represents a recorded message. To sort these rows into a particular order, click a column heading. You can also use a filter to help find rows in which you are interested.

    Filtering is case sensitive and allows the use of wildcards. To search for an exact match, enclose the search string in quotation marks. You can also search for a substring, and you can use an asterisk (*) to match zero or more characters.

  5. Optional: You can download data by clicking the arrow in the Data column.
  6. Select the messages that you want to replay by clicking the check box next to each required message. You can replay only messages that have data.
  7. Click Mark for replay. The marked messages are added to the replay list; they are not replayed at this stage.
  8. Click the Replay list tab.
  9. Select the destination for your data.

    The list of available destinations corresponds to the destinations that you defined in instances of the DataDestination configurable service.

  10. You can now replay all messages or a single message. To replay all messages, click the Replay all button. To replay a single message, click the replay icon in the relevant row.

Results

The selected data is sent to the specified destination. Messages that are not delivered are highlighted.