eXo Kernel :: Component :: Common Service 2.5.0-Alpha2

org.exoplatform.services.transaction.impl.atomikos
Class TransactionsEssentialsTransactionService

java.lang.Object
  extended by org.exoplatform.services.transaction.impl.AbstractTransactionService
      extended by org.exoplatform.services.transaction.impl.atomikos.TransactionsEssentialsTransactionService
All Implemented Interfaces:
TransactionService, Startable

public class TransactionsEssentialsTransactionService
extends AbstractTransactionService
implements Startable

An implementation of a TransactionService for TransactionsEssentials from Atomikos to be used in standalone mode

Version:
$Id$
Author:
Nicolas Filotto

Field Summary
 
Fields inherited from class org.exoplatform.services.transaction.impl.AbstractTransactionService
defaultTimeout, forceTimeout
 
Constructor Summary
TransactionsEssentialsTransactionService()
           
 
Method Summary
protected  TransactionManager findTransactionManager()
          This method will try to find the current TransactionManager
protected  UserTransaction findUserTransaction()
          This method will try to find the current UserTransaction, by default it will simply wraps a TransactionManager
 void start()
           
 void stop()
           
 
Methods inherited from class org.exoplatform.services.transaction.impl.AbstractTransactionService
delistResource, enlistResource, getDefaultTimeout, getTransactionManager, getUserTransaction, isTMInitialized, setTransactionTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionsEssentialsTransactionService

public TransactionsEssentialsTransactionService()
Method Detail

findTransactionManager

protected TransactionManager findTransactionManager()
                                             throws Exception
Description copied from class: AbstractTransactionService
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
See Also:
AbstractTransactionService.findTransactionManager()

findUserTransaction

protected UserTransaction findUserTransaction()
                                       throws Exception
Description copied from class: AbstractTransactionService
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
Throws:
Exception - if an error occurs while looking for the UserTransaction
See Also:
AbstractTransactionService.findUserTransaction()

start

public void start()
Specified by:
start in interface Startable
See Also:
Startable.start()

stop

public void stop()
Specified by:
stop in interface Startable
See Also:
Startable.stop()

eXo Kernel :: Component :: Common Service 2.5.0-Alpha2

Copyright © 2013 eXo Platform SAS. All Rights Reserved.