|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mule.execution.TransactionalErrorHandlingExecutionTemplate
public class TransactionalErrorHandlingExecutionTemplate
Creates an execution context that should be used when: - A flow execution starts because a message was received by a MessageReceiver - Any other entry point of execution with no parent execution context 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
Method Summary | |
---|---|
static TransactionalErrorHandlingExecutionTemplate |
createMainExecutionTemplate(MuleContext muleContext,
MessagingExceptionHandler messagingExceptionHandler)
Creates a TransactionalErrorHandlingExecutionTemplate to be used as first processing template in a flow using no transaction configuration |
static TransactionalErrorHandlingExecutionTemplate |
createMainExecutionTemplate(MuleContext muleContext,
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,
TransactionConfig transactionConfig,
MessagingExceptionHandler messagingExceptionHandler)
Creates a TransactionalErrorHandlingExecutionTemplate to be used as first processing template in a flow |
static TransactionalErrorHandlingExecutionTemplate |
createScopeExecutionTemplate(MuleContext muleContext,
TransactionConfig transactionConfig,
MessagingExceptionHandler messagingExceptionHandler)
Creates a TransactionalErrorHandlingExecutionTemplate for inner scopes within a flow |
MuleEvent |
execute(ExecutionCallback<MuleEvent> executionCallback)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static TransactionalErrorHandlingExecutionTemplate createMainExecutionTemplate(MuleContext muleContext, MessagingExceptionHandler messagingExceptionHandler)
muleContext
- MuleContext for this applicationmessagingExceptionHandler
- exception listener to use for any MessagingException thrownpublic static TransactionalErrorHandlingExecutionTemplate createMainExecutionTemplate(MuleContext muleContext, TransactionConfig transactionConfig, MessagingExceptionHandler messagingExceptionHandler)
muleContext
- MuleContext for this applicationtransactionConfig
- Transaction configurationmessagingExceptionHandler
- Exception listener for any MessagingException thrownpublic static TransactionalErrorHandlingExecutionTemplate createMainExecutionTemplate(MuleContext muleContext, TransactionConfig transactionConfig)
muleContext
- MuleContext for this applicationtransactionConfig
- Transaction configurationpublic static TransactionalErrorHandlingExecutionTemplate createScopeExecutionTemplate(MuleContext muleContext, TransactionConfig transactionConfig, MessagingExceptionHandler messagingExceptionHandler)
muleContext
- transactionConfig
-
public MuleEvent execute(ExecutionCallback<MuleEvent> executionCallback) throws Exception
execute
in interface ExecutionTemplate<MuleEvent>
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |