Developing with Pivotal GemFire
Transaction Coding Examples
This section provides several code examples for writing and executing transactions.
Basic Transaction Example
This example begins a transaction, updates two replicated regions,
, and commits.
Basic Suspend and Resume Transaction Example
This example suspends and resumes a transaction.
Transaction Run in Multiple Regions Example
This example creates a Customer and Order partitioned region, and then updates a customer and one customer order in a transaction.
Transactional Using a Function Example
This example demonstrates a function that does transactional updates to Customer and Order regions.
GemFire JTA Transaction Example
This example shows how to run a JTA global transaction using GemFire as the JTA transaction manager.