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 TransactionException
TransactionFactory
beginTransaction
in interface TransactionFactory
TransactionException
- if the transaction cannot be created or begunpublic Transaction joinExternalTransaction(MuleContext muleContext) throws TransactionException
joinExternalTransaction
in interface ExternalTransactionAwareTransactionFactory
TransactionException
- if the transaction cannot be created or begunpublic boolean isTransacted()
isTransacted
in interface TransactionFactory
public int getTimeout()
public void setTimeout(int timeout)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.