The init() method creates a main thread that spawns a configurable number of listener threads which open a handle to the SAP Gateway. If the connector fails to initialize, it terminates using the terminate() method. The connector terminates by disconnecting the connection to the SAP Gateway.
During the initialization process, the RFC Server module registers with the SAP Gateway using a specified Program ID. This Program ID must be set using the RfcProgramID connector configuration property and set up as a TCP/IP port in the SAP application. For more information on setting up a TCP/IP port, see "Registering the RFC Server module with the SAP Gateway".