terminate()

Performs clean-up operations when the connector is shutting down.

Syntax

public int terminate();
 

Parameters

None.

Return values

An integer that indicates the status value of the terminate() operation.

CxStatusConstants.SUCCEED
The terminate operation succeeded.
CxStatusConstants.FAIL
The terminate operation failed.

Notes

The connector infrastructure calls the terminate() method when the connector is shutting down. In your implementation of this method, it is good practice to free all the memory and log off from the application.

Important:
The terminate() method is an abstract method that you must implement for the connector.

Copyright IBM Corp. 1997, 2003