|Getting Started with Pivotal GemFire / QuickStart Examples|
You can group cache updates with Pivotal GemFire transactions and create dependencies between cache modifications so that they all complete together or fail together.
You can execute transactions against the data in the distributed cache similar to the way you execute transactions in a database, with the standard begin, commit, and rollback operations. GemFire transactions are compatible with Java Transaction API (JTA) transactions and, when run inside a J2EE container, are also compatible with the container's JNDI and JTA transaction manager.
This example runs and commits one transaction and then runs and rolls back another.
In a single session, run the example:
$ java quickstart.Transactions
Program and cache configuration files:
|Transactions.xml||Configures a simple distributed region.|
|Transactions.java||Demonstrates executing transactions against a distributed cache.|