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).

Getting ready

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 ...

Get Instant Effective Caching with Ehcache now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.