org.exoplatform.services.transaction.impl.jotm
Class TransactionServiceJotmImpl
java.lang.Object
org.exoplatform.services.transaction.impl.AbstractTransactionService
org.exoplatform.services.transaction.impl.jotm.TransactionServiceJotmImpl
- All Implemented Interfaces:
- TransactionService
public class TransactionServiceJotmImpl
- extends AbstractTransactionService
Created by The eXo Platform SAS.
JOTM based implementation of
TransactionService
- Version:
- $Id: $
- Author:
- Gennady
Azarenkov
|
Field Summary |
protected static Log |
LOG
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final Log LOG
TransactionServiceJotmImpl
public TransactionServiceJotmImpl(InitialContextInitializer initializer,
InitParams params)
- Default constructor
- Parameters:
initializer - we enforce a dependency with the InitialContextInitializer to
ensure that the related binded resources have been definedparams - the init parameters
findTransactionManager
public TransactionManager findTransactionManager()
throws Exception
- This method will try to find the current
TransactionManager
- Specified by:
findTransactionManager in class AbstractTransactionService
- Returns:
- the current
TransactionManager
- Throws:
Exception - if an error occurs while looking for the TransactionManager
findUserTransaction
public UserTransaction findUserTransaction()
- This method will try to find the current
UserTransaction, by default it will
simply wraps a TransactionManager
- Overrides:
findUserTransaction in class AbstractTransactionService
- Returns:
- the current
UserTransaction
getDefaultTimeout
public int getDefaultTimeout()
-
- Specified by:
getDefaultTimeout in interface TransactionService- Overrides:
getDefaultTimeout in class AbstractTransactionService
- Returns:
- default timeout in seconds
Copyright © 2015 eXo Platform SAS. All Rights Reserved.