SlideShare a Scribd company logo
Presented By
Sindhu VL
Mule ESB provides numerous options for
handling errors. Faults that occur within
Mule are referred to as exceptions; when
an activity in your Mule instance fails, Mule
throws an exception. To manage these
exceptions, Mule allows you to
configureexception strategies.
 It implicitly applies to all Mule applications — manages errors
(i.e. thrown exceptions) in Mule flows. When your flows
require more sophisticated error management, you can
implement one or more exception strategies to construct
precise, efficient protocols for handling errors.
 Mule ESB’s default exception strategy implicitly and globally
handles all messaging exceptions that are thrown in Mule
applications. You can override Mule’s default exception
strategy by adding a catch, rollback, or choice exception
strategy to a flow. Otherwise, when an exception is thrown in a
flow, Mule automatically rolls back any pending transaction
and logs the exception; if no transaction is involved, the
default exception strategy simply logs the exception.
1. System Exceptions
 Mule invokes a System Exception
Strategy when an exception is thrown at
the system-level (i.e., when no message is
involved, exceptions are handled by system
exception strategies). For example, system
exception strategies handle exceptions that
occur:
 During application start-up
 When a connection to an external system
fails
 Messaging Exceptions : Mule invokes a Messaging
Exception Strategy whenever an exception is thrown
within a flow (i.e., whenever a message is involved,
exceptions are handled by messagingexception
strategies).
 When a message being processed through a Mule flow
throws an exception, normal flow execution stops and
processes transfers to the message processor
sequence within the exception strategy. You can
incorporate any number of message processors – and
in one case, other exception strategies – into an
exception strategy to handle the exception precisely as
you wish. The diagram below illustrates what happens
when a message throws an exception.
Error handling with respect to mule
Default Exception Strategy
Catch exception strategy
Rollback exception strategy
Reference exception strategy
Choice exception strategy
USE :
TRANSACTION ERROR
HANDLING :
 Defined and implicitly
applied by default to handle
all messaging exceptions
that are thrown in Mule
applications
 When a message throws an
exception, the default
exception strategy rolls back
the message and logs the
exception.
USE :
TRANSACTION ERROR
HANDLING :
 When a message throws an
exception, the default
exception strategy rolls back
the message and logs the
exception.
 When a message throws an
exception, the catch
exception
strategyalways commits the
transaction and consumes
the message.
USE :
TRANSACTION ERROR
HANDLING :
 Define a rollback exception
strategy to ensure that a
message that throws an
exception in a flow is rolled
back for reprocessing (if the
message source supports
redelivery). Rollback exception
strategies do not consume
inbound messages.
 When a message throws an
exception, the rollback exception
strategy makes one or more
attempts to rollback the message
and redeliver it for processing (if
the message source supports
redelivery). If the message
exceeds its redelivery attempts,
then the rollback exception
strategy commits the failed
transaction and consumes the
message.
USE :
TRANSACTION ERROR
HANDLING :
 Define a reference
exception strategy to refer
and adhere to the error
handling parameters defined
in a global catch, rollback or
choice exception strategy.
 When a message throws an
exception, the reference
exception strategy refers and
adheres to the error handling
parameters defined in a global
catch, rollback or choice
exception strategy. (The
reference exception strategy
itself never actually performs
any rollback, commit, or
consume activities.)
USE :
TRANSACTION ERROR
HANDLING :
 Define a choice exception
strategy to customize the
way Mule handles a
message that throws an
exception based on the
message’s content at the
moment it throws the
exception.
 When a message throws an
exception, the choice
exception strategy makes a
decision about where to
route the message for
further processing. (The
choice exception strategy
itself never actually performs
any rollback, commit, or
consume activities.)
Each flow can contain only one exception
strategy.
Each exception strategy can contain any
number of message processors.
Choice exception strategies can contain
one or more catch and/or rollback
exception strategies. (Rollback and catch
exception strategies cannot, however,
contain other exception strategies.)
Thank You!!!!!!!!!!!!

More Related Content

PPTX
Mule errors
PPTX
Error handling in mule
PPT
Mule exception strategies - Catch exception strategy
PPTX
Mule error handling_choice exception strategy
PPTX
Mule - error handling
PPTX
Handle exceptions in mule
PPTX
Mule concepts exception strategies
Mule errors
Error handling in mule
Mule exception strategies - Catch exception strategy
Mule error handling_choice exception strategy
Mule - error handling
Handle exceptions in mule
Mule concepts exception strategies

What's hot (8)

PPTX
Mulesoft Exceptions
PPTX
Error Handling Framework in Mule ESB
PPTX
Mule error handling
PPTX
Error handling
PPT
Mule exception strategies - Reference Exception Strategy
PPTX
Anypoint Studio - Mule ESB Error Handling
PPTX
Mule exception strategies
PPTX
Mule exceptions Strategy
Mulesoft Exceptions
Error Handling Framework in Mule ESB
Mule error handling
Error handling
Mule exception strategies - Reference Exception Strategy
Anypoint Studio - Mule ESB Error Handling
Mule exception strategies
Mule exceptions Strategy
Ad

Viewers also liked (20)

PPTX
Mule esb enterprise
PPTX
Mule concepts
PPTX
Testing mule
PPTX
Encrption in mule
PPTX
Enterprise service bus mule
PPTX
Quartz connector mule
PPTX
Xslt attributes
PPTX
File connector mule
PPTX
Mule fundamentals
PPTX
Service orchestration by using flows
PPTX
Flows and subflows in mule
PPTX
Working of mule
PPTX
Mule for beginners
PPTX
Content based routing tutorial in mule
PPTX
Mule debugging
PPTX
Using maven with mule
PPTX
Mule esb
PPTX
Munit
PPTX
Mule requester
PPTX
Using flows for service orchestration
Mule esb enterprise
Mule concepts
Testing mule
Encrption in mule
Enterprise service bus mule
Quartz connector mule
Xslt attributes
File connector mule
Mule fundamentals
Service orchestration by using flows
Flows and subflows in mule
Working of mule
Mule for beginners
Content based routing tutorial in mule
Mule debugging
Using maven with mule
Mule esb
Munit
Mule requester
Using flows for service orchestration
Ad

Similar to Error handling with respect to mule (20)

PPTX
A short introduction on error handling in anypoint studio
PPTX
Mule exception strategies
PDF
Exception strategies in MuleSoft Anypoint Studio
PPTX
Mule error handling
PPT
Mule exception strategies - Choice Exception Strategy
PPTX
Mule error handling_rollback exception strategy
ODP
Mule exception handlingstrategies
ODP
Exception handling basics in mule
PPT
Synchronous verses asynchronous processing strategy in mule esb
PPTX
Vancouver mulesoft meetup_23-july
PPTX
Elements in a muleflow
PPTX
Elements in a mule flow
PPTX
Online Spanish meetup #1
PPTX
Controlling Message Flow - Mule ESB
PPT
Mulesoft filters
ODP
Mule esb flow processing strategies
ODP
Mule scopes&error handling
PDF
emPATH Developer's Guide
PPTX
Controlling message flow
PPTX
Muleflowarchitecturepart2
A short introduction on error handling in anypoint studio
Mule exception strategies
Exception strategies in MuleSoft Anypoint Studio
Mule error handling
Mule exception strategies - Choice Exception Strategy
Mule error handling_rollback exception strategy
Mule exception handlingstrategies
Exception handling basics in mule
Synchronous verses asynchronous processing strategy in mule esb
Vancouver mulesoft meetup_23-july
Elements in a muleflow
Elements in a mule flow
Online Spanish meetup #1
Controlling Message Flow - Mule ESB
Mulesoft filters
Mule esb flow processing strategies
Mule scopes&error handling
emPATH Developer's Guide
Controlling message flow
Muleflowarchitecturepart2

More from Sindhu VL (19)

PPTX
Mule - beginners guide
PPTX
Core concepts - mule
PPTX
Core concepts in mule
PPTX
Basics of mule for beginners
PPTX
Mule testing
PPTX
Mule securing
PPTX
Configuration patterns in mule
PPTX
Bindings of components in mule
PPTX
Using mule configuration patterns
PPTX
Component bindings in mule
PPTX
Mule requestor component
PPTX
Concepts in mule
PPTX
Groovy component
PPTX
Mule esb for beginners
PPTX
Design flows in mule
PPTX
Xslt mule
PPTX
Flows in mule
PPTX
Connectors in mule
PPTX
Choice router mule
Mule - beginners guide
Core concepts - mule
Core concepts in mule
Basics of mule for beginners
Mule testing
Mule securing
Configuration patterns in mule
Bindings of components in mule
Using mule configuration patterns
Component bindings in mule
Mule requestor component
Concepts in mule
Groovy component
Mule esb for beginners
Design flows in mule
Xslt mule
Flows in mule
Connectors in mule
Choice router mule

Recently uploaded (20)

PPT
WHY_R12 Uaafafafpgradeaffafafafaffff.ppt
PPTX
ANATOMY OF ANTERIOR CHAMBER ANGLE AND GONIOSCOPY.pptx
PDF
GREEN BUILDING MATERIALS FOR SUISTAINABLE ARCHITECTURE AND BUILDING STUDY
PDF
Facade & Landscape Lighting Techniques and Trends.pptx.pdf
PPTX
AC-Unit1.pptx CRYPTOGRAPHIC NNNNFOR ALL
PDF
Trusted Executive Protection Services in Ontario — Discreet & Professional.pdf
PPTX
building Planning Overview for step wise design.pptx
PDF
The Advantages of Working With a Design-Build Studio
PDF
UNIT 1 Introduction fnfbbfhfhfbdhdbdto Java.pptx.pdf
PPT
pump pump is a mechanism that is used to transfer a liquid from one place to ...
PPTX
6- Architecture design complete (1).pptx
PPTX
Tenders & Contracts Works _ Services Afzal.pptx
DOCX
actividad 20% informatica microsoft project
PDF
Phone away, tabs closed: No multitasking
PDF
BRANDBOOK-Presidential Award Scheme-Kenya-2023
PPTX
Special finishes, classification and types, explanation
PDF
Emailing DDDX-MBCaEiB.pdf DDD_Europe_2022_Intro_to_Context_Mapping_pdf-165590...
PDF
YOW2022-BNE-MinimalViableArchitecture.pdf
PPTX
Wisp Textiles: Where Comfort Meets Everyday Style
PPTX
CLASS_11_BUSINESS_STUDIES_PPT_CHAPTER_1_Business_Trade_Commerce.pptx
WHY_R12 Uaafafafpgradeaffafafafaffff.ppt
ANATOMY OF ANTERIOR CHAMBER ANGLE AND GONIOSCOPY.pptx
GREEN BUILDING MATERIALS FOR SUISTAINABLE ARCHITECTURE AND BUILDING STUDY
Facade & Landscape Lighting Techniques and Trends.pptx.pdf
AC-Unit1.pptx CRYPTOGRAPHIC NNNNFOR ALL
Trusted Executive Protection Services in Ontario — Discreet & Professional.pdf
building Planning Overview for step wise design.pptx
The Advantages of Working With a Design-Build Studio
UNIT 1 Introduction fnfbbfhfhfbdhdbdto Java.pptx.pdf
pump pump is a mechanism that is used to transfer a liquid from one place to ...
6- Architecture design complete (1).pptx
Tenders & Contracts Works _ Services Afzal.pptx
actividad 20% informatica microsoft project
Phone away, tabs closed: No multitasking
BRANDBOOK-Presidential Award Scheme-Kenya-2023
Special finishes, classification and types, explanation
Emailing DDDX-MBCaEiB.pdf DDD_Europe_2022_Intro_to_Context_Mapping_pdf-165590...
YOW2022-BNE-MinimalViableArchitecture.pdf
Wisp Textiles: Where Comfort Meets Everyday Style
CLASS_11_BUSINESS_STUDIES_PPT_CHAPTER_1_Business_Trade_Commerce.pptx

Error handling with respect to mule

  • 2. Mule ESB provides numerous options for handling errors. Faults that occur within Mule are referred to as exceptions; when an activity in your Mule instance fails, Mule throws an exception. To manage these exceptions, Mule allows you to configureexception strategies.
  • 3.  It implicitly applies to all Mule applications — manages errors (i.e. thrown exceptions) in Mule flows. When your flows require more sophisticated error management, you can implement one or more exception strategies to construct precise, efficient protocols for handling errors.  Mule ESB’s default exception strategy implicitly and globally handles all messaging exceptions that are thrown in Mule applications. You can override Mule’s default exception strategy by adding a catch, rollback, or choice exception strategy to a flow. Otherwise, when an exception is thrown in a flow, Mule automatically rolls back any pending transaction and logs the exception; if no transaction is involved, the default exception strategy simply logs the exception.
  • 4. 1. System Exceptions  Mule invokes a System Exception Strategy when an exception is thrown at the system-level (i.e., when no message is involved, exceptions are handled by system exception strategies). For example, system exception strategies handle exceptions that occur:  During application start-up  When a connection to an external system fails
  • 5.  Messaging Exceptions : Mule invokes a Messaging Exception Strategy whenever an exception is thrown within a flow (i.e., whenever a message is involved, exceptions are handled by messagingexception strategies).  When a message being processed through a Mule flow throws an exception, normal flow execution stops and processes transfers to the message processor sequence within the exception strategy. You can incorporate any number of message processors – and in one case, other exception strategies – into an exception strategy to handle the exception precisely as you wish. The diagram below illustrates what happens when a message throws an exception.
  • 7. Default Exception Strategy Catch exception strategy Rollback exception strategy Reference exception strategy Choice exception strategy
  • 8. USE : TRANSACTION ERROR HANDLING :  Defined and implicitly applied by default to handle all messaging exceptions that are thrown in Mule applications  When a message throws an exception, the default exception strategy rolls back the message and logs the exception.
  • 9. USE : TRANSACTION ERROR HANDLING :  When a message throws an exception, the default exception strategy rolls back the message and logs the exception.  When a message throws an exception, the catch exception strategyalways commits the transaction and consumes the message.
  • 10. USE : TRANSACTION ERROR HANDLING :  Define a rollback exception strategy to ensure that a message that throws an exception in a flow is rolled back for reprocessing (if the message source supports redelivery). Rollback exception strategies do not consume inbound messages.  When a message throws an exception, the rollback exception strategy makes one or more attempts to rollback the message and redeliver it for processing (if the message source supports redelivery). If the message exceeds its redelivery attempts, then the rollback exception strategy commits the failed transaction and consumes the message.
  • 11. USE : TRANSACTION ERROR HANDLING :  Define a reference exception strategy to refer and adhere to the error handling parameters defined in a global catch, rollback or choice exception strategy.  When a message throws an exception, the reference exception strategy refers and adheres to the error handling parameters defined in a global catch, rollback or choice exception strategy. (The reference exception strategy itself never actually performs any rollback, commit, or consume activities.)
  • 12. USE : TRANSACTION ERROR HANDLING :  Define a choice exception strategy to customize the way Mule handles a message that throws an exception based on the message’s content at the moment it throws the exception.  When a message throws an exception, the choice exception strategy makes a decision about where to route the message for further processing. (The choice exception strategy itself never actually performs any rollback, commit, or consume activities.)
  • 13. Each flow can contain only one exception strategy. Each exception strategy can contain any number of message processors. Choice exception strategies can contain one or more catch and/or rollback exception strategies. (Rollback and catch exception strategies cannot, however, contain other exception strategies.)