TsgcWSPClient_STOMP_ActiveMQMethods › CommitTransaction

CommitTransaction Method

Sends a COMMIT frame committing all sends and acks in the transaction.

Syntax

procedure CommitTransaction(const aTransaction: String);

Parameters

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

Remarks

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.

Example

oActiveMQ.CommitTransaction('tx-1');

Back to Methods