public class JNDIManagedRuntime extends AbstractManagedRuntime implements ManagedRuntime
ManagedRuntime interface that uses JNDI to
find the TransactionManager.| Constructor and Description |
|---|
JNDIManagedRuntime() |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getRollbackCause()
Returns the Throwable that caused the current transaction to be
marked for rollback, provided that any exists.
|
TransactionManager |
getTransactionManager()
Return the cached TransactionManager instance.
|
String |
getTransactionManagerName()
Return the location of the
TransactionManager in JNDI. |
void |
setRollbackOnly(Throwable cause)
Sets the rollback only flag on the current transaction.
|
void |
setTransactionManagerName(String name)
Set the location of the
TransactionManager in JNDI. |
doNonTransactionalWork, getTransactionKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoNonTransactionalWork, getTransactionKeypublic String getTransactionManagerName()
TransactionManager in JNDI.public void setTransactionManagerName(String name)
TransactionManager in JNDI.public TransactionManager getTransactionManager() throws Exception
getTransactionManager in interface ManagedRuntimeExceptionpublic void setRollbackOnly(Throwable cause) throws Exception
ManagedRuntimesetRollbackOnly in interface ManagedRuntimecause - the Throwable that caused the transaction to be
marked for rollback, or null of none is knownExceptionpublic Throwable getRollbackCause() throws Exception
ManagedRuntimegetRollbackCause in interface ManagedRuntimeExceptionCopyright © 2006–2017 Apache Software Foundation. All rights reserved.