public class InvocationManagedRuntime extends AbstractManagedRuntime implements ManagedRuntime, Configurable
ManagedRuntime interface that uses
a static method call to find the TransactionManager.
For example, to configure it to use IBM Websphere's TransactionManager,
use the method:com.ibm.ejs.jts.jta.JTSXA.getTransactionManager| Constructor and Description |
|---|
InvocationManagedRuntime() |
| Modifier and Type | Method and Description |
|---|---|
void |
endConfiguration() |
Throwable |
getRollbackCause()
Returns the Throwable that caused the current transaction to be
marked for rollback, provided that any exists.
|
TransactionManager |
getTransactionManager()
Return the TransactionManager for the managed runtime.
|
String |
getTransactionManagerMethod()
Return the method to invoke to get the
TransactionManager. |
void |
setConfiguration(Configuration conf) |
void |
setRollbackOnly(Throwable cause)
Sets the rollback only flag on the current transaction.
|
void |
setTransactionManagerMethod(String methodName)
Set the method to invoke to get the
TransactionManager. |
void |
startConfiguration() |
doNonTransactionalWork, getTransactionKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoNonTransactionalWork, getTransactionKeypublic String getTransactionManagerMethod()
TransactionManager.public void setTransactionManagerMethod(String methodName)
TransactionManager.
E.g.: com.ibm.ejs.jts.jta.JTSXA.getTransactionManagerpublic TransactionManager getTransactionManager() throws Exception
ManagedRuntimegetTransactionManager in interface ManagedRuntimeExceptionpublic void setConfiguration(Configuration conf)
setConfiguration in interface Configurablepublic void startConfiguration()
startConfiguration in interface Configurablepublic void endConfiguration()
endConfiguration in interface Configurablepublic 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-2014 Apache Software Foundation. All Rights Reserved.