Basic Transaction Example

This example operates on two replicated regions. It begins a transaction, updates one entry in each region, and commits the result.

If the commit fails, it will be due to a CommitConflictException, which implies that a concurrent access caused a change to one of the items operated on within this transaction. This code fragment catches the exception, and it repeats the transaction attempt until the commit succeeds.