Sun B2B Suite eXchange Integrator User's Guide

Overview

Exception handling is the identification of failed components or systems. In eXchange Integrator, exception handling allows one or more components to throw an exception that is caught by eXchange Integrator within a scope. Using the scope element, you can configure eXchange Integrator to catch all exceptions or certain exceptions that you specify. The elements that you use to configure exception handling in your model are:

Exception handling in B2B protocols relies heavily on the concept of compensation. Compensation is an application-specific activity that reverse the effects of a previous activity that was carried out as part of a larger unit of work that is being abandoned.

B2B protocols are often of long duration and use asynchronous messages for communication. They also manipulate sensitive business data in back-end databases and line-of-business applications. As a result, the overall business transaction may fail or be cancelled after many transactions have been committed during its progress. In these cases, the partial work may need to be reversed.

Exception Handling Configuration

Exception handlers are configured to catch errors that are thrown by eGate components and/or Web Services. These systems can be configured to publish one or more exceptions.

Each exception can be handled differently. The following represents one example:

ProcedureException Handling Example

  1. Build the exception handling logic as a B2B protocol.

  2. Select the exception handler to configure which exception triggers the exception handling process.

  3. Drag the Scope element onto the eXchange Protocol Designer canvas.

  4. Drag the Exception modeling element into the scope for which it should take effect.

  5. Define a B2B protocol that appropriately handles each exception.

  6. Model manual exceptions in a B2B protocol.

  7. Configure the exception handler to take place when one of the components within the Scope throws the appropriate exception.

Identifying Component or System Failures

Exception management allows users to quickly identify and correct problems with components or systems.