Ehcache transactional support (Advanced)
In this recipe, we will cover the following topics:
- Ehcache atomic caching operations and its benefits
- Configuring Ehcache for supporting transactions
We will examine how atomic transactional operations are configured in Ehcache. We first get a firm grasp on transactional modes and code requirements within the transaction context. Then, we will go over the details on implementing a local transactional cache in cluster mode using Terracotta Server Array (for details refer to the Ehcache and Terracotta Server Array (Advanced) recipe).
Transactions guarantee that all operations are to be completed successfully or fully discarded if an error occurs. In our context an error means some sort of exception ...