TsgcWSPClient_STOMP_ActiveMQ › Methods › AbortTransaction
Sends an ABORT frame rolling back the transaction in progress.
procedure AbortTransaction(const aTransaction: String);
| Name | Type | Description |
|---|---|---|
aTransaction | const String | Transaction id originally supplied to BeginTransaction; identifies the transaction being rolled back. |
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.
oActiveMQ.AbortTransaction('tx-1');