public class XaTransactionFactory extends Object implements ExternalTransactionAwareTransactionFactory
XaTransactionFactory Is used to create/retrieve a Transaction from a transaction manager configured on the
MuleManager.| Constructor and Description |
|---|
XaTransactionFactory() |
| Modifier and Type | Method and Description |
|---|---|
Transaction |
beginTransaction(MuleContext muleContext)
Create and begins a new transaction
|
int |
getTimeout() |
boolean |
isTransacted()
Determines whether this transaction factory creates transactions that are really transacted or if they are being used to
simulate batch actions, such as using Jms Client Acknowledge.
|
Transaction |
joinExternalTransaction(MuleContext muleContext)
Create a Mule transaction that represents a transaction started outside of Mule
|
void |
setTimeout(int timeout) |
public Transaction beginTransaction(MuleContext muleContext) throws org.mule.runtime.api.tx.TransactionException
TransactionFactorybeginTransaction in interface TransactionFactoryorg.mule.runtime.api.tx.TransactionException - if the transaction cannot be created or begunpublic Transaction joinExternalTransaction(MuleContext muleContext) throws org.mule.runtime.api.tx.TransactionException
joinExternalTransaction in interface ExternalTransactionAwareTransactionFactoryorg.mule.runtime.api.tx.TransactionException - if the transaction cannot be created or begunpublic boolean isTransacted()
isTransacted in interface TransactionFactorypublic int getTimeout()
public void setTimeout(int timeout)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.