TsgcWSPClient_STOMP_ActiveMQ › Methods › CommitTransaction
Sends a COMMIT frame committing all sends and acks in the transaction.
procedure CommitTransaction(const aTransaction: String);
| Name | Type | Description |
|---|---|---|
aTransaction | const String | Transaction id originally supplied to BeginTransaction; identifies the transaction being committed. |
Finalises a transaction previously opened with BeginTransaction. The ActiveMQ broker applies every SEND, ACK and NACK that carried this transaction id as a single atomic unit; subscribers only see the published messages after the commit succeeds. Once committed the id is consumed and cannot be reused without a new BeginTransaction.
oActiveMQ.CommitTransaction('tx-1');