Extending the connector base class

To create a connector, you extend the connector base class, available in the connector library. The base class for the connector includes methods for initialization and setup of the connector's application-specific component. Your derived connector class contains the code for the application-specific component of the connector.

Note:
For information on naming conventions for a connector, see Naming IBM WebSphere InterChange Server Components in the IBM WebSphere InterChange Server documentation set.

The connector base class includes the methods shown in Table 24.. You must implement these methods in your connector.

Table 24. Methods to implement in the connector base class

Description Connector base class method For more information
Initializes the connector's application-specific component init() "Initializing the connector"
Returns the version of the connector getVersion() "Checking the connector version"
Sets up one or more business object handlers getBOHandlerforBO() "Obtaining the business object handler"
Polls for application events pollForEvents() "Polling for events"
Performs cleanup tasks upon connector termination terminate() "Shutting down the connector"

Figure 24 illustrates the complete set of methods that the connector framework calls, and shows which methods are called at startup and which are called at runtime. All but one of the methods that the connector framework calls are in the connector base class. The remaining method, doVerbFor(), is in the business object handler class; for information on implementing the doVerbFor() method, see Request processing.

Figure 24. Summary of methods called by the connector framework


For more information on extending the connector base class, see Extending the C++ connector base class.

Copyright IBM Corp. 1997, 2004