background preloader

Cool lib

Facebook Twitter

Infinispan transactions - Infinispan 5.2. JTA Support Infinispan can be configured to use and to participate in JTA compliant transactions. Alternatively, if transaction support is disabled, it is equivalent to using autocommit in JDBC calls, where modifications are potentially replicated after every change (if replication is enabled). On every cache operation Infinispan does the following: 1.

Retrieves the current Transaction associated with the thread 2. If not already done, registers XAResource with the transaction manager to be notified when a transaction commits or is rolled back. In order to do this, the cache has to be provided with a reference to the environment's TransactionManager . Infinispan ships with several transaction manager lookup classes: DummyTransactionManagerLookup : This provides with a dummy transaction manager which should only be used for testing.

JBossStandaloneJTAManagerLookup : If you're running Infinispan in a standalone environment, this should be your default choice for transaction manager. Getting Started Guide - Infinispan 5.2. Authors This guide will walk you through downloading, installing and running Infinispan for the first time. It will then introduce to some of the key features of Infinispan. Infinispan can be used in a variety of runtimes: , started by your application an which provides Infinispan as a service (such as JBoss AS) in your application, deployed to an application server, and started on by your application (for example, you could use Infinispan with Tomcat or GlassFish) Infinispan offers four modes of operation, which determine how and where the data is stored: , where entries are stored on the local node only, regardless of whether a cluster has formed.

. , where all entries are stored into a cache store (such as a database) only, and invalidated from all nodes. . , where all entries are replicated to all nodes. . , where entries are distributed to a subset of the nodes only. Invalidation, Replication and Distribution can all use synchronous or asynchronous communication. into your application code. Flot - Project Hosting on Google Code. JavaScript InfoVis Toolkit - Interactive Data Visualizations for. Highcharts - Interactive JavaScript charts for your webpage.