remotePgmType in callLink element

The remotePgmType property of the callLink element of the linkage options part specifies the kind of program being called. The remotePgmType property affects the generation of the calling program. The property is applicable in the following situation:
Select one of the following values:
EGL
The called program is a COBOL or Java program, or Java wrapper,that was generated by EGL or by VisualAge® Generator. This value is the default.
EXTERNALLYDEFINED
The called program was generated neither by EGL nor by VisualAge Generator. This option is available only in the following cases:
  • The caller is a Java program, and the called program runs on CICS and includes CICS commands.
  • The caller is a Java program, and the called program is a non-EGL generated program on the System i.
  • The caller is a Java program, and the called program is a non-EGL-generated DLL or a C or C++ program.

    If the caller is calling a DLL, set the library property to the name of the shared library if the program is not the same as the name of the function being called within the DLL.

STATEFUL
System i only. Used on Web projects for pages to access stateful host programs on the System i, such as RPG programs. This option bypasses the host catcher program. It creates and stores a connection based on the Web session; subsequent System i calls will reuse the same connection.
The following considerations apply:
  • Bypassing the host catcher program means that EGL does not initiate commit or rollback operations for the host program. The user code is responsible for commit and rollback.
  • The option is allowed only when the remoteComType property is set to JAVA400 and the target is a Web project.
STATELESS
System i only. Used to directly call a host program, bypassing the catcher. This option uses connection pooling, so subsequent calls are not guaranteed to use the same connection. The following considerations apply:
  • Bypassing the host catcher program means that EGL does not initiate commit or rollback operations for the host program. The user code is responsible for commit and rollback.

Feedback