tibemsSession_Rollback

Function

Purpose

Roll back messages in the current transaction.

C Declaration

tibems_status tibemsSession_Rollback(
    tibemsSession session );

COBOL Call

CALL "tibemsSession_Rollback"
     USING BY VALUE session,
           RETURNING tibems-status
END-CALL.
Note: session has usage pointer.

Parameters

Parameter Description
session Rollback the messages in this session.

Remarks

When a session does not have transactional semantics, this function returns TIBEMS_ILLEGAL_STATE.

Messages sent to a queue with prefetch=none and maxRedelivery=number properties are not received number times by an EMS application that receives in a loop and does an XA rollback after the XA prepare phase.