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 |
|---|---|
java.lang.Throwable |
getRollbackCause()
Returns the Throwable that caused the current transaction to be
marked for rollback, provided that any exists.
|
javax.transaction.TransactionManager |
getTransactionManager()
Return the cached TransactionManager instance.
|
java.lang.String |
getTransactionManagerName()
Return the location of the
TransactionManager in JNDI. |
void |
setRollbackOnly(java.lang.Throwable cause)
Sets the rollback only flag on the current transaction.
|
void |
setTransactionManagerName(java.lang.String name)
Set the location of the
TransactionManager in JNDI. |
doNonTransactionalWork, getTransactionKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoNonTransactionalWork, getTransactionKeypublic java.lang.String getTransactionManagerName()
TransactionManager in JNDI.public void setTransactionManagerName(java.lang.String name)
TransactionManager in JNDI.public javax.transaction.TransactionManager getTransactionManager()
throws java.lang.Exception
getTransactionManager in interface ManagedRuntimejava.lang.Exceptionpublic void setRollbackOnly(java.lang.Throwable cause)
throws java.lang.Exception
ManagedRuntimesetRollbackOnly in interface ManagedRuntimecause - the Throwable that caused the transaction to be
marked for rollback, or null of none is knownjava.lang.Exceptionpublic java.lang.Throwable getRollbackCause()
throws java.lang.Exception
ManagedRuntimegetRollbackCause in interface ManagedRuntimejava.lang.ExceptionCopyright © 2006-2013 Apache Software Foundation. All Rights Reserved.