JBoss.orgCommunity Documentation

Chapter 63. TransactionService

63.1. Existing TransactionService implementations
63.1.1. JOTM in standalone mode
63.1.2. Generic TransactionService based on the TransactionManagerLookup of JBoss Cache
63.1.3. Specific GenericTransactionService for JBoss Cache and Arjuna
63.1.4. Generic TransactionService based on the TransactionManagerLookup of Infinispan
63.1.5. Specific GenericTransactionService for Infinispan and Arjuna
63.1.6. A very specific TransactionService for JBoss AS
63.1.7. TransactionsEssentials in standalone mode

TransactionServices provides access to the TransactionManager and the UserTransaction (See JTA specification for details).

Table 63.1. List methods

getTransactionManager()Get used TransactionManager
getUserTransaction()Get UserTransaction on TransactionManager
getDefaultTimeout()Return default TimeOut
setTransactionTimeout(int seconds)Set TimeOut in second
enlistResource(XAResource xares)Enlist XA resource in TransactionManager
delistResource(XAResource xares)Delist XA resource from TransactionManager

eXo JCR proposes out of the box several implementations, they all implement the abstract class org.exoplatform.services.transaction.impl.AbstractTransactionService. This main class implement the biggest part of all the methods proposed by the TransactionService. For each sub-class of AbstractTransactionService, you can set the transaction timeout by configuration using the value parameter timeout that is expressed in seconds.