Skip Headers
Oracle® Enterprise Service Bus Developer's Guide
10g (10.1.3.3.0)

Part Number E10295-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

10 Tracking Message Instances Across the Enterprise Service Bus

This chapter describes how to use the Oracle ESB Control Instances view to track message instances across the enterprise service bus.

This chapter contains the following topics:

10.1 Overview of the Oracle ESB Control Instances View

The Instances view enables you to view details about instance processing across an ESB system. It enables you to filter message instances based on any of the following properties:

When you select a message instance from the Instances panel (shown in the lower left of Figure 10-1), the message instance's path through the enterprise service bus is presented in the Tracking tab diagram. Within the diagram, services that successfully processed the message instance are represented in green, services where an error occurred are represented in red, and services that were not invoked (or have not yet been invoked) in the processing of the message are represented in gray. If the transaction is rolled back, the service is represented in yellow. You can select a service in the Tracking tab diagram and view the processing details in the Details subtab, shown in the lower right of Figure 10-1.

Figure 10-1 shows that the CRM adapter service (CRMOut) was successfully invoked and that the database adapter service (CustDBOut) was not invoked because a filter expression excluded the message from delivery to the database adapter service.

Figure 10-1 Instances View – Tracking Tab and Details Subtab

Description of Figure 10-1 follows
Description of "Figure 10-1 Instances View – Tracking Tab and Details Subtab"

10.2 Understanding Instances View Elements and Controls

The Instances view of the Oracle ESB Control, as shown in Figure 10-1 is divided into four main regions, as follows:

10.3 Administering Message Instances

You can view details and statistics of, search for, and delete message instances. You can also enable and disable message instance tracking.

This section discusses the following topics:

10.3.1 Enabling and Disabling Instance Tracking

Instance tracking is enabled by default. However, for maximum throughput at high volumes, it is recommended that instance tracking is disabled.

Follow these steps to enable or disable message tracking:

  1. At the top of the Oracle ESB Control, click the Instances button if the Instances view is not currently displaying.

  2. Open the Manage panel if it is not already open.

  3. Select or deselect Enable tracking of instances to enable or disable instance tracking, respectively.

  4. In the Manage panel title bar, click the Apply icon (green arrow).

10.3.2 Viewing Instance Details

The Details tab, below the schematic in the Oracle ESB Control Instances view, shows the following details about a message instance, as follows:

  • If you select a service in the Instances panel or the schematic:

    • Status

      This field specifies the status of the message, which can be successful or failed. If a message was processed successfully, but the transaction was rolled back due to some other error, that information is included in the Status field. For example, the status might be: Successful; however, the transaction was rolled back due to an error in CRMOUT:Write.

    • Activity Time

      This field specifies the time at which the message was processed by the service selected in the Instances panel.

    • Tracking data

  • If you click the connection between two services in the schematic:

    • Source

      Specifies the service and operation from which the message instance is being sent, in the format source_service::operation.

    • Target

      Specifies the service and operation to which the message instance is being sent, in the format target_service::operation.

    • Status

      Specifies the status of the target service. For example, the status might be one of the following:

      • Did not process the message.

      • Not executed as part of the message flow.

      • Not successful because there was an error during the invocation of the target.

10.3.3 Viewing Instance Statistics

The Overlay tab, below the schematic in the Oracle ESB Control Instances view, enables you to view statistics as overlays on the schematic.

If you enable Processing Time, the schematic shows the time in milliseconds it took for each service within the enterprise service bus to process the message instance, as shown in Figure 10-7.

Figure 10-7 Sample Overlay Statistics in Instances View

Description of Figure 10-7 follows
Description of "Figure 10-7 Sample Overlay Statistics in Instances View"

10.3.4 Searching for Message Instances

If the Instances panel contains too many message instances for you to find the message instances of interest quickly, you can search the messages, as follows:

  1. At the top of the Oracle ESB Control, click the Instances button if the Instances view is not currently displaying.

  2. Open the Search panel, if it is not already open.

  3. Specify the desired search criteria, as described in Table 10-1.

  4. In the Search panel title bar, click the Apply icon (green arrow).

Table 10-1 Specifying Message Instance Search Criteria

Search Criteria Description

Instance ID

To limit the messages to those with a specific instance ID:

  1. If they are not already displaying, open the Advanced options by click the expand icon. (The plus (+) box next to Basic. in the Instances panel.)

  2. In the Instance ID field, enter the ID of the desired message instance.

Multiple Instance IDs cannot be specified. If an Instance ID is provided as search criteria, other filter conditions are ignored.

Activity in last <time frame>

To limit the messages to processed in a specific time frame:

  1. If they are not already displaying, open the Advanced options by click the expand icon. (The plus (+) box next to Basic. in the Instances panel.)

  2. From the drop-down list next to the Activity in last field, select a time period.

  3. In the Activity in last field, select the number of time periods specified in step 2 that you want to include.

    Be aware that message instances for a given time frame may not be available if messages have been purged, as described in "Purging Message Instances".

Service

To limit the messages to those processed by a particular service:

  1. To the right of the Service field, click the ESB Service Browser icon.

    A dialog box opens.

  2. Navigate to the ESB system that contains the service of interest.

  3. Select the service of interest.

  4. Click Select.

Status

To limit the messages to those in a particular status, in the Status field, select one of the following:

  • Any - Select this option to display all message instances.

  • Error – Select this option to limit the message instances to those for which an error occurred in processing.

  • Faulted – Select this option to limit the message instances to those for which a fault, as defined by the service WSDL, occurred.

  • Resubmittable - Select this option to limit the message instances to those that are resubmittable.

Match

Specify whether to match Any or All of the criteria in the Tracking Name and Value fields.

Tracking Name and Tracking Value (trackable fields)

To limit the messages to those which have a particular value in a trackable field or fields:

  1. Replace <Tracking Name> with the name of a previously defined trackable field.

    See "Defining and Managing Tracking Fields" for instructions on defining trackable fields.

  2. The logical operator cannot be selected. It is always equals (=) for an exact match.

  3. Replace <Tracking Value> with the value for the trackable field.

  4. If you want to specify multiple trackable field/value pairs, click the plus (+) button, and then repeat steps 1 and 2 for each additional pair.

  5. In the Match field, select Any if you want a message instance listed if it matches one or more of the listed tracking field/tracking value pairs specified; select All if you want only messages listed that match all of the listed tracking field/tracking value pairs.

If you want to delete a trackable field/tracking value pair, click the minus (-) button that appears next to that row.


10.3.5 Purging Message Instances

By default, no message instances are purged. As a result the list of message instances in the Instances panel can become unwieldy. You can direct the ESB Server to purge all messages or all message instances that occurred outside a specified time range. Instances that are purged are lost forever.

To purge messages:

  1. At the top of the Oracle ESB Control, click the Instances button if the Instances view is not currently displaying.

  2. Open the Manage panel if it is not already open.

  3. Select the frequency with which you want messages purged:

    • To purge all message instances, under Purge instances, select All.

    • To purge all message instances that occurred outside a time range, under Purge instances, select Older than and indicate the time range.

  4. In the Manage title bar, click the Apply icon (green arrow).