|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.transaction.AbstractTransactionController org.eclipse.persistence.transaction.JTATransactionController org.kuali.rice.krad.data.jpa.eclipselink.JtaTransactionController
public class 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.
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 |
---|
public JtaTransactionController()
Method Detail |
---|
protected TransactionManager acquireTransactionManager() throws Exception
acquireTransactionManager
in class org.eclipse.persistence.transaction.JTATransactionController
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |