Error handling and recovery

This topic describes error handling and recovery for the Websphere Adapter for Flat Files.

The adapter handles errors in the following ways :

Error handling for inbound

During deployment, the adapter verifies all the ActivationSpec attribute values as mentioned above. The verifications include the following:

During runtime, the adapter handles the error by logging errors.

Error handling for outbound

During deployment, the adapter verifies all the ManagedConnectionFactory attribute values.

During runtime, the adapter verifies the protocol-specific parameter values (directory and file name) passed during each method call. Also verification is performed for each application-specific function logic (e.g the output file should exist for append operation).

The error is handled by logging it and throwing it back to the originator of the method call.

Recovery

The adapter uses the Event Management Framework (EMF) of the base classes during the event processing which has built-in recovery mechanism. Apart from these, the adapter itself follows the following recovery steps.

If the adapter crashes after sending some events to the base classes (after the getEvents() call), when the adapter subsequently comes alive, it does not resend those event Ids again. This is done by checking the event Ids and status present in the FlatFileEventTable during startup. This same logic is applicable for event Ids which represents file chunks.

Parent topic: Troubleshooting and support

Related tasks
Contacting IBM Software Support

Related reference
TechNotes
Logging files
Tracing files


Copyright IBM Corp. 2003, 2005 |