public class TransactionalErrorHandlingExecutionTemplate extends Object implements ExecutionTemplate<Event>
Created a ExecutionTemplate that will: Resolve non xa transactions created before it if the TransactionConfig action requires it suspend-resume xa transaction created before it if the TransactionConfig action requires it start a transaction if required by TransactionConfig action resolve transaction if was started by this TransactionTemplate route any exception to exception strategy if it was not already routed to it
| Modifier and Type | Method and Description |
|---|---|
static TransactionalErrorHandlingExecutionTemplate |
createMainExecutionTemplate(MuleContext muleContext,
FlowConstruct flowConstruct,
MessagingExceptionHandler messagingExceptionHandler)
Creates a TransactionalErrorHandlingExecutionTemplate to be used as first processing template in a flow using no transaction
configuration
|
static TransactionalErrorHandlingExecutionTemplate |
createMainExecutionTemplate(MuleContext muleContext,
FlowConstruct flowConstruct,
TransactionConfig transactionConfig)
Creates a TransactionalErrorHandlingExecutionTemplate to be used as first processing template in a flow using no particular
exception listener.
|
static TransactionalErrorHandlingExecutionTemplate |
createMainExecutionTemplate(MuleContext muleContext,
FlowConstruct flowConstruct,
TransactionConfig transactionConfig,
MessagingExceptionHandler messagingExceptionHandler)
Creates a TransactionalErrorHandlingExecutionTemplate to be used as first processing template in a flow
|
static TransactionalErrorHandlingExecutionTemplate |
createScopeExecutionTemplate(MuleContext muleContext,
FlowConstruct flowConstruct,
TransactionConfig transactionConfig,
MessagingExceptionHandler messagingExceptionHandler)
Creates a TransactionalErrorHandlingExecutionTemplate for inner scopes within a flow
|
Event |
execute(ExecutionCallback<Event> executionCallback) |
public static TransactionalErrorHandlingExecutionTemplate createMainExecutionTemplate(MuleContext muleContext, FlowConstruct flowConstruct, MessagingExceptionHandler messagingExceptionHandler)
muleContext - MuleContext for this applicationmessagingExceptionHandler - exception listener to use for any MessagingException thrownpublic static TransactionalErrorHandlingExecutionTemplate createMainExecutionTemplate(MuleContext muleContext, FlowConstruct flowConstruct, TransactionConfig transactionConfig, MessagingExceptionHandler messagingExceptionHandler)
muleContext - MuleContext for this applicationtransactionConfig - Transaction configurationmessagingExceptionHandler - Exception listener for any MessagingException thrownpublic static TransactionalErrorHandlingExecutionTemplate createMainExecutionTemplate(MuleContext muleContext, FlowConstruct flowConstruct, TransactionConfig transactionConfig)
muleContext - MuleContext for this applicationtransactionConfig - Transaction configurationpublic static TransactionalErrorHandlingExecutionTemplate createScopeExecutionTemplate(MuleContext muleContext, FlowConstruct flowConstruct, TransactionConfig transactionConfig, MessagingExceptionHandler messagingExceptionHandler)
muleContext - transactionConfig - public Event execute(ExecutionCallback<Event> executionCallback) throws Exception
execute in interface ExecutionTemplate<Event>ExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.