MQ_CMIT_EXIT - Commit changes

 


Exit providers can supply an  MQ_CMIT_EXIT  function to intercept the  MQCMIT  call. If the unit of work is being coordinated by an external unit-of-work manager,  MQ_CMIT_EXIT  is also invoked in response to the application issuing the unit-of-work manager's commit call.

 

Syntax


 MQ_CMIT_EXIT  (pExitParms, pExitContext, pHconn, pCompCode,
pReason)

 

Parameters

The  MQ_CMIT_EXIT  call has the following parameters.

 

pExitParms (PMQAXP) - input/output

Exit parameter structure.

 

pExitContext (PMQAXC) - input/output

Exit context structure.

 

pHconn (PMQHCONN) - input/output

Connection handle.

 

pCompCode (PMQLONG) - input/output

Completion code.

 

pReason (PMQLONG) - input/output

Reason code qualifying pCompCode.

 

C invocation

MQ_CMIT_EXIT (&ExitParms, &ExitContext, &Hconn,
             &CompCode, &Reason);

The parameters passed to the exit are declared as follows:

PMQAXP    pExitParms;    /* Exit parameter structure */
PMQAXC    pExitContext;  /* Exit context structure */
PMQHCONN  pHconn;        /* Connection handle */
PMQLONG   pCompCode;     /* Completion code */
PMQLONG   pReason;       /* Reason code qualifying CompCode */