O'Reilly logo

Infinispan Data Grid Platform Definitive Guide by Wagner Roberto dos Santos

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Java Transaction API

Infinispan can be prepared to participate in JTA-compliant transactions.

JTA or the Java Transaction API, allows developers to demarcate transactions in a way that makes your code independent of the implementation details of the transaction manager.

With JTA, developers have to worry about getting their code up and running on the platform and using code that manages transactions rather than connections, such as JDBC. JTA exposes several interfaces such as javax.transaction.UserTransaction, where the developer can start the transaction with the begin() method and either the commit() or rollback() method to terminate the transaction and the javax.transaction.TransactionManager API to participate in the transaction lifecycle.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required