Managing iSeries communications sessions for application programs

System Object Access APIs for iSeries™ Access for Windows® communicate with the iSeries server through the use of one or more client/server conversations.

Because it often takes several seconds to establish a conversation, your application may experience delays when a list first is opened. This topic explains how to control and manage the initiation of conversations so that the performance impact on application programs is minimized.

The default behavior of System Object Access may be summarized as follows:

A System Object Access conversation may be started using the cwbRC_StartSysEx API. This API accepts an iSeries system object as a parameter, and returns a system handle. Save this handle for later use on the cwbRC_StopSys API, when the application is terminating and it is time to end the conversation with the iSeries server.

When the cwbRC_StartSysEx API is called, the application is blocked until the conversation is established. Therefore, it is good practice to inform the user that a connection is about to be attempted immediately before the call. On return, the conversation will have been initiated, and System Object Access list processing will use this conversation instead of starting a new one.

When cwbRC_StartSysEx is used in this way, the last list to be deleted will not end the conversation. You must call cwbRC_StopSys explicitly before you exit the application.