Initialization and termination

The init() method opens an RFC connection to the SAP R/3 application through the SAP Gateway. If the connector fails to initialize, it terminates the connection using the terminate() method. The connector terminates by disconnecting from the SAP Gateway.

When processing application events or business object requests, the connector's initialization process performs the following tasks:

  1. Registers with the SAP Gateway the Program ID specified in the RfcProgramID connector configuration property. For information on setting the Program ID as a TCP/IP port see Registering the RFC Server module with the SAP Gateway..
  2. Opens an MQSeries session to the queues configured for the connector.
  3. Verifies that the required MQSeries queues for event and request processing have been created. If they have not been created, the process terminates the connector.

Because the connector supports multi-threading, when the ALE Module processes requests from the integration broker, it uses SAP's Java Connector (SAPJCo) connection pool of such handles.

Important:
When you use the ALE module to process application events, connector polling is required to properly initialize the module (to install the RFC functions on the server), and for it to properly manage errors. Therefore, do not set the value of the PollFrequency property to key or to no. Do not allow the SAP application to trigger events to the connector until you have verified that the connector's log displays the installation of the required RFC functions.

Copyright IBM Corp. 1997, 2003