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()
Invoked upon completion of bean property configuration for this object.
|
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 TransactionManager for the managed runtime.
|
java.lang.String |
getTransactionManagerMethod()
Return the method to invoke to get the
TransactionManager. |
void |
setConfiguration(Configuration conf)
Invoked prior to setting bean properties.
|
void |
setRollbackOnly(java.lang.Throwable cause)
Sets the rollback only flag on the current transaction.
|
void |
setTransactionManagerMethod(java.lang.String methodName)
Set the method to invoke to get the
TransactionManager. |
void |
startConfiguration()
Invoked before bean property configuration is begun on this object.
|
doNonTransactionalWork, getTransactionKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoNonTransactionalWork, getTransactionKeypublic java.lang.String getTransactionManagerMethod()
TransactionManager.public void setTransactionManagerMethod(java.lang.String methodName)
TransactionManager.
E.g.: com.ibm.ejs.jts.jta.JTSXA.getTransactionManagerpublic javax.transaction.TransactionManager getTransactionManager()
throws java.lang.Exception
ManagedRuntimegetTransactionManager in interface ManagedRuntimejava.lang.Exceptionpublic void setConfiguration(Configuration conf)
ConfigurablesetConfiguration in interface Configurablepublic void startConfiguration()
ConfigurablestartConfiguration in interface Configurablepublic void endConfiguration()
ConfigurableendConfiguration in interface Configurablepublic 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.