terminate()

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

Syntax

virtual int terminate() = 0;
  

Return values

An integer that indicates the status value of the terminate() operation. Typical return values are:

BON_SUCCESS
Termination succeeded.

BON_FAIL
Termination failed.

For other return values, see doVerbFor().

Notes

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

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

Copyright IBM Corp. 1997, 2003