init()

Initializes the connector's application-specific component.

Syntax

virtual int init(CxVersion * version) = 0;

Parameters

version[in]
Is the version object of the connector framework.

Return values

An integer that indicates the status of the initialization operation. Typical return values are:

BON_SUCCESS
Initialization succeeded.

BON_FAIL
Initialization failed.

BON_UNABLETOLOGIN
The connector is unable to log in to the application.

For other return values, see doVerbFor().

Notes

The class library calls the init() method when the connector comes up. Be sure to implement all of the initialization for the connector, such as logging on to an application, in the init() method.

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

As part of the initialization, the init() method can optionally compare the version of the connector framework with the version that it expects and return success if the versions match, or failure if the connector cannot work with the version of the connector framework.

See also

See also the description of the GenGlobals class.

Copyright IBM Corp. 1997, 2004