2.3.11 Transactional ATMI Client Request/Response to Host CPI-C
Figure 2-31 DMCONFIG File Entry

- ATMI client invokes
toupsrvservice. - The
toupsrvservice issuestpbeginto start the transaction. - The
toupsrvservice issuestpcallforSIMPCPIC, which is advertised in the DM_REMOTE_SERVICES section of the DMCONFIG file. Data is sent from theidatabuffer on thetpconnect. - The remote service with
tpnameTPNCPICinvokesTOUPCPICprogram. - The server accepts the conversation with the
cmaccpcall. The conversation ID returned on the request inconvidis used for all other requests during this conversation. - The
cmrcvrequest receives theidatabuffer contents for processing. - The
cmsstandcmsptrprepare the next send request by setting the send type toCM_SEND_AND_PREP_TO_RECEIVEand by setting the prepare-to-receive type toCM_PREP_TO_RECEIVE_CONFIRM. - The
cmsendrequest immediately returns theobuffercontents into the client’sodatabuffer. The server relinquishes control to the server and indicates the end of the conversation with theCONFIRMrequest. - The
toupsrvissues thetpcommitto successfully complete the transaction and commit all updated resources. Thecmrcvrequest receives the commit request, and responds explicitly to the request with the SAA Resource/Recovery commit callsrrcmit. The conversation is ended after the successful commit exchange.
Parent topic: CPI-C Programming Examples