LATEST VERSION: 9.0.4 - CHANGELOG
Pivotal GemFire® v9.0

Behavior of Geode Cache Writers and Loaders Under JTA

When Geode participates in a global transactions, you can still have Geode cache writers and cache loaders operating in the usual way.

For example, in addition to the transactional connection to the database, the region could also have a cache writer and cache loader configured to exchange data with that same database. As long as the data source is transactional, which means that it can detect the transaction manager, the cache writer and cache loader participate in the transaction. If the JTA rolls back its transaction, the changes made by the cache loader and the cache writer are rolled back. For more on transactional data sources, see the discussion of XAPooledDataSource and ManagedDataSource inConfiguring Database Connections Using JNDI.

If you are using a Geode cache or transaction listener with global transactions, be aware that the EntryEvent returned by a transaction has the Geode transaction ID, not the JTA transaction ID.