SlideShare a Scribd company logo
MULE - ERROR HANDLING
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.
Default exception strategy
 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.
Error Types :
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.
Messaging Exceptions Flow :
Types of messaging exception
strategies :
 Default Exception Strategy
 Catch exception strategy
 Rollback exception strategy
 Reference exception strategy
 Choice exception strategy
Default Exception Strategy :
 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 :
Catch Exception Strategy :
 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 com
mits the transaction
and consumes the
message.
Use : Transaction Error Handling :
Rollback Exception Strategy :
 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
 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,
Use : Transaction Error Handling :
Reference Exception Strategy :
 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
Use : Transaction Error Handling :
Choice Exception Strategy :
 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
 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
Use : Transaction Error Handling :
Characteristics of messaging
exception strategies:
 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 exception strategies
PPTX
Error Handling Framework in Mule ESB
PPTX
Mule errors
PPTX
Error handling in mule
PPTX
Error handling with respect to mule
PPTX
Mule concepts exception strategies
PPTX
Mule error handling_choice exception strategy
PPTX
Error handling
Mule exception strategies
Error Handling Framework in Mule ESB
Mule errors
Error handling in mule
Error handling with respect to mule
Mule concepts exception strategies
Mule error handling_choice exception strategy
Error handling

What's hot (6)

PPT
Mule exception strategies - Reference Exception Strategy
PPTX
A short introduction on error handling in anypoint studio
PPTX
Anypoint Studio - Mule ESB Error Handling
PPTX
Mule error handling
PPT
Mule exception strategies - Choice Exception Strategy
PPTX
Mule filters
Mule exception strategies - Reference Exception Strategy
A short introduction on error handling in anypoint studio
Anypoint Studio - Mule ESB Error Handling
Mule error handling
Mule exception strategies - Choice Exception Strategy
Mule filters
Ad

Viewers also liked (20)

PDF
Mule ESB Fundamentals
PDF
Mule ESB - Integration Simplified
PPTX
Mule securing
PPTX
Mule ESB Tutorial Part 2
PPTX
Data weave documentation
PDF
Mule esb presentation
PPT
Mulesoft ppt
PPTX
Mule ESB Tutorial Part 1
PDF
Application Architecture: The Next Wave | MuleSoft
PPT
Simple Poll in Mule
PPT
Mule batch processing
PPTX
Mule batch processing
PPT
Mule and web services
ODP
Security components in mule esb
ODP
Integration patterns in muleesb
PPTX
Mule batch job
ODP
Mule architecture styles
PPTX
Expression language in mule
PPTX
Data weave in Mule
PDF
Encrypt The Mule Message With Anypoint JCE and XML Encrypter
Mule ESB Fundamentals
Mule ESB - Integration Simplified
Mule securing
Mule ESB Tutorial Part 2
Data weave documentation
Mule esb presentation
Mulesoft ppt
Mule ESB Tutorial Part 1
Application Architecture: The Next Wave | MuleSoft
Simple Poll in Mule
Mule batch processing
Mule batch processing
Mule and web services
Security components in mule esb
Integration patterns in muleesb
Mule batch job
Mule architecture styles
Expression language in mule
Data weave in Mule
Encrypt The Mule Message With Anypoint JCE and XML Encrypter
Ad

Similar to Mule - error handling (20)

PPTX
Mule exception strategies
PDF
Exception strategies in MuleSoft Anypoint Studio
PPTX
Handle exceptions in mule
PPTX
Mule exceptions Strategy
PPT
Mule exception strategies - Catch exception strategy
PPTX
Mule error handling
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
Online Spanish meetup #1
PPTX
Elements in a muleflow
PPTX
Elements in a mule flow
ODP
Mule esb flow processing strategies
ODP
Mule scopes&error handling
PPT
Mulesoft filters
PPTX
Mule Scatter-Gather component
PPT
Mulesoft debug
Mule exception strategies
Exception strategies in MuleSoft Anypoint Studio
Handle exceptions in mule
Mule exceptions Strategy
Mule exception strategies - Catch exception strategy
Mule error handling
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
Online Spanish meetup #1
Elements in a muleflow
Elements in a mule flow
Mule esb flow processing strategies
Mule scopes&error handling
Mulesoft filters
Mule Scatter-Gather component
Mulesoft debug

More from Sindhu VL (20)

PPTX
Mule - beginners guide
PPTX
Core concepts - mule
PPTX
Core concepts in mule
PPTX
Basics of mule for beginners
PPTX
Mule testing
PPTX
Mule debugging
PPTX
Service orchestration by using flows
PPTX
Configuration patterns in mule
PPTX
Bindings of components in mule
PPTX
Using maven with mule
PPTX
Using mule configuration patterns
PPTX
Using flows for service orchestration
PPTX
Component bindings in mule
PPTX
Mule requestor component
PPTX
Encrption in mule
PPTX
Concepts in mule
PPTX
Enterprise service bus mule
PPTX
Groovy component
PPTX
Working of mule
PPTX
Mule esb for beginners
Mule - beginners guide
Core concepts - mule
Core concepts in mule
Basics of mule for beginners
Mule testing
Mule debugging
Service orchestration by using flows
Configuration patterns in mule
Bindings of components in mule
Using maven with mule
Using mule configuration patterns
Using flows for service orchestration
Component bindings in mule
Mule requestor component
Encrption in mule
Concepts in mule
Enterprise service bus mule
Groovy component
Working of mule
Mule esb for beginners

Recently uploaded (20)

PPTX
Causes of Flooding by Slidesgo sdnl;asnjdl;asj.pptx
PDF
UNIT 1 Introduction fnfbbfhfhfbdhdbdto Java.pptx.pdf
PPTX
Tenders & Contracts Works _ Services Afzal.pptx
PPTX
Fundamental Principles of Visual Graphic Design.pptx
PPT
EGWHermeneuticsffgggggggggggggggggggggggggggggggg.ppt
PDF
SEVA- Fashion designing-Presentation.pdf
DOCX
actividad 20% informatica microsoft project
PPTX
YV PROFILE PROJECTS PROFILE PRES. DESIGN
PPTX
An introduction to AI in research and reference management
PPTX
artificialintelligencedata driven analytics23.pptx
PDF
Africa 2025 - Prospects and Challenges first edition.pdf
PPTX
Special finishes, classification and types, explanation
PPT
UNIT I- Yarn, types, explanation, process
PPTX
Implications Existing phase plan and its feasibility.pptx
PPT
Machine printing techniques and plangi dyeing
PDF
Quality Control Management for RMG, Level- 4, Certificate
PPT
Package Design Design Kit 20100009 PWM IC by Bee Technologies
PPTX
ANATOMY OF ANTERIOR CHAMBER ANGLE AND GONIOSCOPY.pptx
PDF
Phone away, tabs closed: No multitasking
PPT
unit 1 ppt.ppthhhhhhhhhhhhhhhhhhhhhhhhhh
Causes of Flooding by Slidesgo sdnl;asnjdl;asj.pptx
UNIT 1 Introduction fnfbbfhfhfbdhdbdto Java.pptx.pdf
Tenders & Contracts Works _ Services Afzal.pptx
Fundamental Principles of Visual Graphic Design.pptx
EGWHermeneuticsffgggggggggggggggggggggggggggggggg.ppt
SEVA- Fashion designing-Presentation.pdf
actividad 20% informatica microsoft project
YV PROFILE PROJECTS PROFILE PRES. DESIGN
An introduction to AI in research and reference management
artificialintelligencedata driven analytics23.pptx
Africa 2025 - Prospects and Challenges first edition.pdf
Special finishes, classification and types, explanation
UNIT I- Yarn, types, explanation, process
Implications Existing phase plan and its feasibility.pptx
Machine printing techniques and plangi dyeing
Quality Control Management for RMG, Level- 4, Certificate
Package Design Design Kit 20100009 PWM IC by Bee Technologies
ANATOMY OF ANTERIOR CHAMBER ANGLE AND GONIOSCOPY.pptx
Phone away, tabs closed: No multitasking
unit 1 ppt.ppthhhhhhhhhhhhhhhhhhhhhhhhhh

Mule - error handling

  • 1. MULE - ERROR HANDLING Presented By Sindhu VL
  • 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. Default exception strategy  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. Error Types : 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. Types of messaging exception strategies :  Default Exception Strategy  Catch exception strategy  Rollback exception strategy  Reference exception strategy  Choice exception strategy
  • 8. Default Exception Strategy :  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 :
  • 9. Catch Exception Strategy :  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 com mits the transaction and consumes the message. Use : Transaction Error Handling :
  • 10. Rollback Exception Strategy :  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  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, Use : Transaction Error Handling :
  • 11. Reference Exception Strategy :  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 Use : Transaction Error Handling :
  • 12. Choice Exception Strategy :  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  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 Use : Transaction Error Handling :
  • 13. Characteristics of messaging exception strategies:  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.)