org.kuali.rice.krad.data.jpa.eclipselink
Class JtaTransactionController

java.lang.Object
  extended by org.eclipse.persistence.transaction.AbstractTransactionController
      extended by org.eclipse.persistence.transaction.JTATransactionController
          extended by org.kuali.rice.krad.data.jpa.eclipselink.JtaTransactionController
All Implemented Interfaces:
org.eclipse.persistence.sessions.ExternalTransactionController

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

An implementation of EclipseLink's ExternalTransactionController which will utilize the JTA TransactionManager being used by the KRAD application.

It locates this via a call to Jta.getTransactionManager(). So the application must ensure that it has configured and setup JTA properly within it's application environment.

The superclass for this class, which is part of EclipseLink, attempts to invoke the acquireTransactionManager() from the default contructor. So an attempt will be made to acquire the JTA transaction manager as soon as an instance of this object is created. This means that it must be ensured that JPA is enabled prior to the creation of an instance of this controller class.

Author:
Kuali Rice Team (rice.collab@kuali.org)

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

Constructor Detail

JtaTransactionController

public JtaTransactionController()
Method Detail

acquireTransactionManager

protected TransactionManager acquireTransactionManager()
                                                throws Exception

Overrides:
acquireTransactionManager in class org.eclipse.persistence.transaction.JTATransactionController
Throws:
Exception


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.