terminate()

Terminates the connector, performing any required clean-up tasks.

Syntax

public int terminate();
 

Parameters

None.

Return values

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

CWConnectorConstant.SUCCEED
The terminate operation succeeded.

CWConnectorConstant.FAIL
The terminate operation failed.

Exceptions

None.

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. You must implement this method for the connector.

Important:
The CWConnectorAgent class does not provide a default implementation for the terminate() method. Therefore, the connector base class must implement this method if resource clean-up is required.

Copyright IBM Corp. 1997, 2003