org.kuali.student.common.util.jta
Class AtomikosJtaTransactionController

java.lang.Object
  extended by org.eclipse.persistence.transaction.AbstractTransactionController
      extended by org.eclipse.persistence.transaction.JTATransactionController
          extended by org.kuali.student.common.util.jta.AtomikosJtaTransactionController
All Implemented Interfaces:
org.eclipse.persistence.sessions.ExternalTransactionController

public class AtomikosJtaTransactionController
extends org.eclipse.persistence.transaction.JTATransactionController

Author:
Kuali Student Passes the Atomikos TransactionManager to Eclipselink. Set the property

eclipselink.target-server=org.kuali.student.common.util.jta.AtomikosJtaTransactionController

The first instance Atomikos UserTransactionManager starts the Atomikos service and only the first instance of UserTransactionManager will have a handle to shut it down on close.

Field Summary
private static TransactionManager tm
           
 
Fields inherited from class org.eclipse.persistence.transaction.JTATransactionController
transactionManager
 
Fields inherited from class org.eclipse.persistence.transaction.AbstractTransactionController
activeUnitOfWorkThreadLocal, currentlyProcessedListeners, listenerFactory, numSessionsRequiringSequencingCallback, sequencingListeners, session, unitsOfWork
 
Constructor Summary
AtomikosJtaTransactionController()
           
 
Method Summary
protected  TransactionManager acquireTransactionManager()
           
static TransactionManager getTm()
           
static void setTm(TransactionManager tm)
           
 
Methods inherited from class org.eclipse.persistence.transaction.JTATransactionController
beginTransaction_impl, canBeginTransaction_impl, canCommitTransaction_impl, canIssueSQLToDatabase_impl, canMergeUnitOfWork_impl, canRollbackTransaction_impl, commitTransaction_impl, getIntStatus, getTransaction_impl, getTransactionKey_impl, getTransactionManager, getTransactionStatus_impl, isRolledBack_impl, markTransactionForRollback_impl, registerSynchronization_impl, rollbackTransaction_impl, setTransactionManager, statusToString_impl
 
Methods inherited from class org.eclipse.persistence.transaction.AbstractTransactionController
addUnitOfWork, beginTransaction, bindToCurrentTransaction, clearSequencingListeners, commitTransaction, getActiveSequencingCallback, getActiveUnitOfWork, getListenerFactory, getSession, getTransaction, getTransactionKey, getTransactionStatus, getUnitsOfWork, hasActiveUnitOfWork, initializeSequencingListeners, isSequencingCallbackRequired, jndiLookup, logTxStateTrace, logTxTrace, lookupActiveUnitOfWork, lookupActiveUnitOfWork, markTransactionForRollback, noTransactionOrRolledBackOrCommited, numSessionsRequiringSequencingCallback, registerSynchronizationListener, removeSequencingListener, removeUnitOfWork, rollbackTransaction, setListenerFactory, setSession, setUnitsOfWork
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tm

private static TransactionManager tm
Constructor Detail

AtomikosJtaTransactionController

public AtomikosJtaTransactionController()
Method Detail

acquireTransactionManager

protected TransactionManager acquireTransactionManager()
                                                throws Exception
Overrides:
acquireTransactionManager in class org.eclipse.persistence.transaction.JTATransactionController
Throws:
Exception

getTm

public static TransactionManager getTm()

setTm

public static void setTm(TransactionManager tm)


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.