2.3.12 Transactional Host CPI-C to ATMI Conversational Server, Client Grants Control
Figure 2-32 DMCONFIG File Entry

- The CPI-C application program
MIRRCPIC
is invoked using environment start-up specifications. - The
MIRRCPIC
client requestscminit
to establish conversation attributes and receive a conversation ID that will be used on all other requests on this conversation. The remote server and service are named in the CPI-C side information entryMIRRSIDE
. - The
cmssl
sets the conversation attributes to sync-level 2 withCM_SYNCPOINT
. This allows the ATMI service to participate in the transaction. - The
cmallc
request initiates the advertised service mapped toMIRRORSERV
in the DM_LOCAL_SERVICES section of the DMCONFIG file. - The MIRRCPIC causes the client to relinquish control to the
ATMI server with a prepare-to-receive request. The
cmsptr
sets the prepare-to-receive type to CM_RECEIVE_AND_FLUSH. Thecmptr
request immediately relinquishes control. - The
MIRROR
service sends the data contents of theodata
buffer to thecmrcv
ibuffer
. Thecmrcv
receives a confirm request from the server indicating the conversation should be terminated. - The client replies positively to the confirm request with
cmcfmd
. - The
MIRRCPIC
client prepares to free the conversation with thecmdeal
request. The conversation in CM_DEALLOCATE_SYNC_LEVEL commits all updated resources in the transaction and waits for the SAA resource recovery verb,srrcmit
. After thecommit
sequence has completed, the conversation terminates.
Parent topic: CPI-C Programming Examples