The latest version of open-source cache framework ehcache supports post-write caching and uses Java transaction API (JTA) for transaction management, it also provides a cache plug-in for hibernate 3.3, a batch loading API for cluster cache, and a cache Reconfiguration Mechanism for runtime. Ehcache 2.0 introduces the write-through and write-behind caches. The direct write cache mode is used to write data to the cache of underlying resources (such as databases. This cache becomes an external interface (facade) for underlying resources ). The post-write cache mode uses the same client API, but writes are asynchronous. The postwrite cache feature is part of the new ehcache API and is suitable for asynchronous batch update of databases. Transaction Management: The New JTA Support feature allows the cache to exist in JTA transactions as XA resources. It automatically detects and uses the following transaction managers in sequence: General JNDI (such as glassfish, JBoss, WebLogic, jtom), websphere, bitronix JTA Transaction Manager, and atomikos. Ehcache 2.0 is not a transactional cache for hibernate. Ehcache 2.1 (beta version just released) provides JTA support for hibernate. Ehcache 2.0 also provides a shortcut mode to cluster application data through configuration changes, regardless of whether the data is in hibernate, distributed cache, or session object. It supports using the distributed cache as the second-level cache of hibernate, or you can directly use the ehcache API. Switching between local and distributed implementations is accomplished through configuration changes. Other features include: • batch loading: The batchcompute mode is used to load data to the cache through the terracotta server array. This option can be used for cache pushing (filling the cache before the application goes online) and regular batch loading. • Configuration Management: supports dynamic ehcache configuration. cache parameters include time-to-idle (TTI) and time-to-live (TTL) can be changed through the terracotta console or other JMX compatible tools. • Web sessions: Upgrade terracotta web sessions to provide HTTP session clustering for Web applications. • TC server array: terracotta server array (TSA) is restructured to provide cluster consistency, high availability, and durability. • Osgi: supports osgi containers. Ehcache 2.0 supports Java EE containers, such as WebLogic, tomcat, JBoss, and jetty. In a piece of news, the ehcache team also released the ehcache server to provide restful and soap APIs to the ehcache framework.