TsgcWSPClient_STOMP_ActiveMQMethods › AbortTransaction

AbortTransaction Method

Sends an ABORT frame rolling back the transaction in progress.

Syntax

procedure AbortTransaction(const aTransaction: String);

Parameters

NameTypeDescription
aTransactionconst StringTransaction id originally supplied to BeginTransaction; identifies the transaction being rolled back.

Remarks

Discards every SEND, ACK and NACK that carried this transaction id since BeginTransaction was called. The ActiveMQ broker releases any resources held for the transaction and the associated messages are not delivered to other subscribers. Call this when an application error makes the batch of operations invalid.

Example

oActiveMQ.AbortTransaction('tx-1');

Back to Methods