The AIM receives servayt() command from the SFM.
It executes servayt() function. The function reads the lastid file to retrieve the serial number of the last transaction processed by the AIM. The serial number is then returned back to SFM.
The AIM receives servproc() DFC from the SFM
It executes servproc() function. The function may perform necessary manipulation to put data in the format required by the endpoint application. The data then is sent to the endpoint using communication object’s send() method. At this point, servproc() calls clSuspend() to pass control to the protocol object to process the endpoint acknowledgement.
The protocol object executes preview control flow when the communication object receives the response from the endpoint.
The endpoint response is processed through defined message frame objects to determine if the endpoint accepted or rejected the transaction. The control flow attached to the message frame calls clRelease() to return control to the servproc() function.
If the endpoint accepts the transaction, servproc() saves the serial number to the lastid file.
If the transaction is executed successfully, servproc() returns appropriate value to the SFM.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |