Ehcache 2.0: Post-write cache and JTA support

Source: Internet
Author: User
Tags server array

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.