Using Transaction Processing
To use transaction processing, your application should follow these steps:
1. Obtain a transaction identifier that will be used on all published events that are part of the transaction.
2. Begin the transaction.
3. Publish the events that make up the transaction.
4. End the transaction, which may consist of a COMMIT, ROLLBACK, or SAVEPOINT operation.