Listener threads handle all of the RFC calls between the RFC
Server module and the SAP application. When the connector starts
up, the init() method creates a main thread that spawns a
configurable number of listener threads. Each listener thread opens
a handle to the SAP Gateway.
The listener threads:
- Register with the SAP Gateway using a program identifier.
- Identify to the SAP Gateway the RFC-enabled functions that they
support.
- Use the first available thread to pick up an event from a
supported RFC-enabled function.
- Instantiate an RFC Server-specific business object handler
based on the server verb in the corresponding business object, and
then retrieve the event data from the SAP Gateway.
- Populate business objects with RFC event data, and then convert
returned business object data to RFC event data.
- Return a response to the RFC-enabled function through the SAP
Gateway.
- Note:
- A thread listens continuously in a synchronous manner for
events from RFC-enabled functions that it supports.
