SlideShare a Scribd company logo
Mule Concepts
Error Handling
Rollback Exception Strategy
• A rollback exception strategy can be used to ensure that a
message that throws an exception in a flow is rolled back for
reprocessing.
• A rollback exception strategy can be used when you
cannot correct an error when it occurs in a flow.
• A rollback exception strategy is normally used to handle errors
that occur in a flow that involve a transaction.
• If the transaction fails, that is, if a message throws an
exception while being processed, then the rollback exception
strategy rolls back the transaction in the flow.
• If the inbound connector is transactional, Mule delivers the
message to the inbound connector of the parent flow again to
reattempt processing (that is, message redelivery).
Rollback Exception Strategy
• When to use :
– To manage transactional errors.
– To manage unhandled exceptions—​exceptions that the application
fails to catch.
– Put in flows in which messages require redelivery.
• A rollback exception strategy has the potential to introduce an
infinite loop of activity within a flow.
• To avoid this infinite loop and responsibly manage
unresolvable errors, two limitations to a rollback exception
strategy can be applied:
– Define the maximum number of times that the rollback exception
strategy attempts to redeliver the message for processing.
– Define a flow to handle messages that exceed the maximum number
of redelivery attempts.
Rollback Exception Strategy
• When to use :
– To manage transactional errors.
– To manage unhandled exceptions—​exceptions that the application
fails to catch.
– Put in flows in which messages require redelivery.
• A rollback exception strategy has the potential to introduce an
infinite loop of activity within a flow.
• To avoid this infinite loop and responsibly manage
unresolvable errors, two limitations to a rollback exception
strategy can be applied:
– Define the maximum number of times that the rollback exception
strategy attempts to redeliver the message for processing.
– Define a flow to handle messages that exceed the maximum number
of redelivery attempts.
Rollback Exception Strategy
• A rollback exception strategy provides multiple attempts for a
message to successfully move through a flow before committing a
failed transaction and consuming the message, unlike catch
exception strategy.
• Mule attempts message redelivery when the flow uses one of the
following two types of transports:
– Transactional
• consumes a message as it travels through the flow
• transforms it to a different object, or enriches it with more data.
• When a message using a transactional transport throws an exception, a rollback
exception strategy rolls back the transaction so the transport can return a message
to its original state for reprocessing.
– Reliable
• does not consume a message as it travels through the flow until it can ascertain that
the message has successfully reached the end of the flow.
• When a message using a reliable transport throws an exception, the rollback
exception strategy discards the partially processed message and instructs the flow
to attempt processing the original message again.
Rollback Exception Strategy
• If the flow involves a reliable transport and a rollback
exception strategy, you must set the flow’s Processing
Strategy to "synchronous". (Configure the Processing Strategy
in the Flow Properties panel.)
• This is because reliable transports do not consume messages,
they wait for messages to successfully complete a flow before
consuming the messages; therefore, the flow must process
synchronously.
• If you deploy a Mule application that contains a flow with an
asynchronous processing strategy and a rollback exception
strategy configured for message redelivery, the application
fails!
Rollback Exception Strategy
– Transactional Transports :
• VM
– message rolls back to its original state for reprocessing.
• JDBC
– message rolls back to its original state for reprocessing.
• JMS
– message rolls back to its original state for reprocessing.
– Reliable Transports :
• JMS
– The session recovers, that is, Mule discards the copy of the source file and
attempts reprocessing the message using a fresh copy.
– A JMS redelivery configuration takes precedence over the rollback exception
strategy.
• FTP
– Mule discards the copy of the source file and attempts reprocessing the message
using a fresh copy.
• File
– Mule discards the copy of the source file and attempts reprocessing the message
using a fresh copy.
• IMAP
– Mule does not move the message from the mailbox and attempts reprocessing the message
using a fresh copy of the original.
Rollback Exception Strategy
• Unhandled Exceptions
– exceptions that they are unable to resolve by
performing corrective measures
– Typically, all unhandled exceptions are handled by
Mule’s default exception strategy
– But you can customize a rollback exception strategy to
more efficiently route messages with unhandled
exceptions.
– Below ways can be used :
• For one-way pattern of flow exchange, the rollback
exception strategy instructs the inbound connector transport
to execute corrective actions.
• For request-response pattern rollback exception strategy
changes the payload of a message and returns it to the
client.
Rollback Exception Strategy
• Rollback Exception Strategy vs. Default Exception
Strategy :
– Default Exception Strategy:
• Stores the exception information in the payload of the message.
• Returns null in the exceptionPayload attributeMessage.
• Injects NullPayload as the message’s payload; unable to customize.
• Records exception information in the exceptionPayload attribute;
unable to customize.
– Rollback Exception Strategy:
• Retains the information in the message payload at the time the
exception was thrown; does not alter the message payload.
• Stores the exception information in the exceptionPayload.
• Returns the message processing result during execution of the
exception strategy.
• Records exception information in the exceptionPayload attribute;
able to customize.
Rollback Exception Strategy
• Configuration properties :
– Display Name :
• A unique name for the rollback exception strategy in your application.
– Max redelivery attempts :
• an integer to define the number of times you want the rollback exception strategy to roll back a message for
reprocessing.
• Setting is as 0 : the rollback exception strategy does _*not* _attempt to redeliver the message and throws a
MessageRedeliveredException upon the first processing failure.
• Setting it as nothing : he rollback exception strategy redelivers the message over and over again, creating an
infinite loop.
– When :
• Enter an expression to indicate the kind of exception the rollback exception should handle.
• Expression not defined:
– All messages in this flow that throw exceptions are handled by this rollback exception strategy.
• Expression defined:
– When Mule evaluates the expression against the message being processed and returns true, Mule
executes the exception strategy.
– Mule’s default exception strategy implicitly handles all exceptions which do not match the expression
you have defined in theWhen field.
• Enable Notifications:
– true (default)
» When set to true, instructs Mule to send an exception notification to a registered listener
– False
» To not to send the notification.
Rollback Exception Strategy
Ad

More Related Content

What's hot (20)

Bioavailability Studies of Ketorolac Tromethamine Fast Dissolving Tablets Pre...
Bioavailability Studies of Ketorolac Tromethamine Fast Dissolving Tablets Pre...Bioavailability Studies of Ketorolac Tromethamine Fast Dissolving Tablets Pre...
Bioavailability Studies of Ketorolac Tromethamine Fast Dissolving Tablets Pre...
IOSR Journals
 
KERTAS KERJA LAWATAN ASRAMA 2 (New).pdf
KERTAS KERJA LAWATAN ASRAMA 2 (New).pdfKERTAS KERJA LAWATAN ASRAMA 2 (New).pdf
KERTAS KERJA LAWATAN ASRAMA 2 (New).pdf
Simonkun
 
Portfolio contoh tulisan
Portfolio contoh tulisanPortfolio contoh tulisan
Portfolio contoh tulisan
Ira Indah
 
ISP Load Balancing with Mikrotik ECMP
ISP Load Balancing with Mikrotik ECMPISP Load Balancing with Mikrotik ECMP
ISP Load Balancing with Mikrotik ECMP
GLC Networks
 
Pembahasan Tugas 1 Jaringan Komputer tentang Perhitungan VLSM
Pembahasan Tugas 1 Jaringan Komputer tentang Perhitungan VLSMPembahasan Tugas 1 Jaringan Komputer tentang Perhitungan VLSM
Pembahasan Tugas 1 Jaringan Komputer tentang Perhitungan VLSM
I Putu Hariyadi
 
Kertas cadangan sukan tahunan 2015
Kertas cadangan sukan tahunan 2015Kertas cadangan sukan tahunan 2015
Kertas cadangan sukan tahunan 2015
mazuan4656
 
Synchronous verses asynchronous processing strategy in mule esb
Synchronous verses asynchronous processing strategy in mule esbSynchronous verses asynchronous processing strategy in mule esb
Synchronous verses asynchronous processing strategy in mule esb
VishnuAnji
 
Overview of Distributed Virtual Router (DVR) in Openstack/Neutron
Overview of Distributed Virtual Router (DVR) in Openstack/NeutronOverview of Distributed Virtual Router (DVR) in Openstack/Neutron
Overview of Distributed Virtual Router (DVR) in Openstack/Neutron
vivekkonnect
 
BIG IP F5 GTM Presentation
BIG IP F5 GTM PresentationBIG IP F5 GTM Presentation
BIG IP F5 GTM Presentation
PCCW GLOBAL
 
FreeSWITCH Cluster by K8s
FreeSWITCH Cluster by K8sFreeSWITCH Cluster by K8s
FreeSWITCH Cluster by K8s
Chien Cheng Wu
 
Mail server
Mail serverMail server
Mail server
Putra Wanda
 
PPT KEDUA.pptx
PPT KEDUA.pptxPPT KEDUA.pptx
PPT KEDUA.pptx
mohfarkun
 
Apple Captive Network Assistant Bypass with ClearPass Guest
Apple Captive Network Assistant Bypass with ClearPass GuestApple Captive Network Assistant Bypass with ClearPass Guest
Apple Captive Network Assistant Bypass with ClearPass Guest
Aruba, a Hewlett Packard Enterprise company
 
Surat makluman aktiviti koko 2019 kpd sekolah2 agama
Surat makluman aktiviti koko 2019 kpd sekolah2 agamaSurat makluman aktiviti koko 2019 kpd sekolah2 agama
Surat makluman aktiviti koko 2019 kpd sekolah2 agama
Akademi Kota Raja Utama
 
Object oriented programming dengan php
Object oriented programming dengan phpObject oriented programming dengan php
Object oriented programming dengan php
Materi Kuliah Online
 
Software Defined Networking (SDN) Controller Network Management
Software Defined Networking (SDN) Controller Network ManagementSoftware Defined Networking (SDN) Controller Network Management
Software Defined Networking (SDN) Controller Network Management
I Putu Hariyadi
 
Program sandaran npqel
Program sandaran npqelProgram sandaran npqel
Program sandaran npqel
Hassan Mat
 
ColdFusion Fw1 (FrameWork1) introduction
ColdFusion Fw1 (FrameWork1) introductionColdFusion Fw1 (FrameWork1) introduction
ColdFusion Fw1 (FrameWork1) introduction
SaravanaMuthu Jayaraj
 
Materi-1-sd-2-Pengenalan-PBO.pptx
Materi-1-sd-2-Pengenalan-PBO.pptxMateri-1-sd-2-Pengenalan-PBO.pptx
Materi-1-sd-2-Pengenalan-PBO.pptx
HallendAfroni1
 
Makalah Membangun Jaringan Rt/Rw-Net
Makalah Membangun Jaringan Rt/Rw-NetMakalah Membangun Jaringan Rt/Rw-Net
Makalah Membangun Jaringan Rt/Rw-Net
Siti-nurhaenah
 
Bioavailability Studies of Ketorolac Tromethamine Fast Dissolving Tablets Pre...
Bioavailability Studies of Ketorolac Tromethamine Fast Dissolving Tablets Pre...Bioavailability Studies of Ketorolac Tromethamine Fast Dissolving Tablets Pre...
Bioavailability Studies of Ketorolac Tromethamine Fast Dissolving Tablets Pre...
IOSR Journals
 
KERTAS KERJA LAWATAN ASRAMA 2 (New).pdf
KERTAS KERJA LAWATAN ASRAMA 2 (New).pdfKERTAS KERJA LAWATAN ASRAMA 2 (New).pdf
KERTAS KERJA LAWATAN ASRAMA 2 (New).pdf
Simonkun
 
Portfolio contoh tulisan
Portfolio contoh tulisanPortfolio contoh tulisan
Portfolio contoh tulisan
Ira Indah
 
ISP Load Balancing with Mikrotik ECMP
ISP Load Balancing with Mikrotik ECMPISP Load Balancing with Mikrotik ECMP
ISP Load Balancing with Mikrotik ECMP
GLC Networks
 
Pembahasan Tugas 1 Jaringan Komputer tentang Perhitungan VLSM
Pembahasan Tugas 1 Jaringan Komputer tentang Perhitungan VLSMPembahasan Tugas 1 Jaringan Komputer tentang Perhitungan VLSM
Pembahasan Tugas 1 Jaringan Komputer tentang Perhitungan VLSM
I Putu Hariyadi
 
Kertas cadangan sukan tahunan 2015
Kertas cadangan sukan tahunan 2015Kertas cadangan sukan tahunan 2015
Kertas cadangan sukan tahunan 2015
mazuan4656
 
Synchronous verses asynchronous processing strategy in mule esb
Synchronous verses asynchronous processing strategy in mule esbSynchronous verses asynchronous processing strategy in mule esb
Synchronous verses asynchronous processing strategy in mule esb
VishnuAnji
 
Overview of Distributed Virtual Router (DVR) in Openstack/Neutron
Overview of Distributed Virtual Router (DVR) in Openstack/NeutronOverview of Distributed Virtual Router (DVR) in Openstack/Neutron
Overview of Distributed Virtual Router (DVR) in Openstack/Neutron
vivekkonnect
 
BIG IP F5 GTM Presentation
BIG IP F5 GTM PresentationBIG IP F5 GTM Presentation
BIG IP F5 GTM Presentation
PCCW GLOBAL
 
FreeSWITCH Cluster by K8s
FreeSWITCH Cluster by K8sFreeSWITCH Cluster by K8s
FreeSWITCH Cluster by K8s
Chien Cheng Wu
 
PPT KEDUA.pptx
PPT KEDUA.pptxPPT KEDUA.pptx
PPT KEDUA.pptx
mohfarkun
 
Surat makluman aktiviti koko 2019 kpd sekolah2 agama
Surat makluman aktiviti koko 2019 kpd sekolah2 agamaSurat makluman aktiviti koko 2019 kpd sekolah2 agama
Surat makluman aktiviti koko 2019 kpd sekolah2 agama
Akademi Kota Raja Utama
 
Object oriented programming dengan php
Object oriented programming dengan phpObject oriented programming dengan php
Object oriented programming dengan php
Materi Kuliah Online
 
Software Defined Networking (SDN) Controller Network Management
Software Defined Networking (SDN) Controller Network ManagementSoftware Defined Networking (SDN) Controller Network Management
Software Defined Networking (SDN) Controller Network Management
I Putu Hariyadi
 
Program sandaran npqel
Program sandaran npqelProgram sandaran npqel
Program sandaran npqel
Hassan Mat
 
ColdFusion Fw1 (FrameWork1) introduction
ColdFusion Fw1 (FrameWork1) introductionColdFusion Fw1 (FrameWork1) introduction
ColdFusion Fw1 (FrameWork1) introduction
SaravanaMuthu Jayaraj
 
Materi-1-sd-2-Pengenalan-PBO.pptx
Materi-1-sd-2-Pengenalan-PBO.pptxMateri-1-sd-2-Pengenalan-PBO.pptx
Materi-1-sd-2-Pengenalan-PBO.pptx
HallendAfroni1
 
Makalah Membangun Jaringan Rt/Rw-Net
Makalah Membangun Jaringan Rt/Rw-NetMakalah Membangun Jaringan Rt/Rw-Net
Makalah Membangun Jaringan Rt/Rw-Net
Siti-nurhaenah
 

Viewers also liked (20)

Mule mel 4_tips
Mule mel 4_tipsMule mel 4_tips
Mule mel 4_tips
kunal vishe
 
Mule debugging logging_configuration_in_mule
Mule debugging logging_configuration_in_muleMule debugging logging_configuration_in_mule
Mule debugging logging_configuration_in_mule
kunal vishe
 
Mule esb-connectors
Mule esb-connectorsMule esb-connectors
Mule esb-connectors
himajareddys
 
Mulethenewtechnology 12549172699166-phpapp03-160421133841
Mulethenewtechnology 12549172699166-phpapp03-160421133841Mulethenewtechnology 12549172699166-phpapp03-160421133841
Mulethenewtechnology 12549172699166-phpapp03-160421133841
ppts123456
 
Mule mel 1
Mule mel 1Mule mel 1
Mule mel 1
kunal vishe
 
Mule scopes 2
Mule scopes 2Mule scopes 2
Mule scopes 2
kunal vishe
 
Mule debugging managing_stack_traces
Mule debugging managing_stack_tracesMule debugging managing_stack_traces
Mule debugging managing_stack_traces
kunal vishe
 
Mule concepts transformers
Mule concepts transformersMule concepts transformers
Mule concepts transformers
kunal vishe
 
Mule Custom Aggregator
Mule Custom AggregatorMule Custom Aggregator
Mule Custom Aggregator
Ankush Sharma
 
Summer School: Achievements and Applications of Contemporary Informatics, Mat...
Summer School: Achievements and Applications of Contemporary Informatics, Mat...Summer School: Achievements and Applications of Contemporary Informatics, Mat...
Summer School: Achievements and Applications of Contemporary Informatics, Mat...
YSF-2015
 
Mule scopes 1
Mule scopes 1Mule scopes 1
Mule scopes 1
kunal vishe
 
Mule concepts filters scopes_routers
Mule concepts filters scopes_routersMule concepts filters scopes_routers
Mule concepts filters scopes_routers
kunal vishe
 
Mule concepts connectors
Mule concepts connectorsMule concepts connectors
Mule concepts connectors
kunal vishe
 
Mule scopes foreach_scope
Mule scopes foreach_scopeMule scopes foreach_scope
Mule scopes foreach_scope
kunal vishe
 
Mule concepts elements in a mule flow
Mule concepts elements in a mule flowMule concepts elements in a mule flow
Mule concepts elements in a mule flow
kunal vishe
 
Mule debugging logging_in_mule
Mule debugging logging_in_muleMule debugging logging_in_mule
Mule debugging logging_in_mule
kunal vishe
 
Mule data weave_5
Mule data weave_5Mule data weave_5
Mule data weave_5
kunal vishe
 
Mule concepts flows
Mule concepts flowsMule concepts flows
Mule concepts flows
kunal vishe
 
Mule concepts components
Mule concepts componentsMule concepts components
Mule concepts components
kunal vishe
 
Mule message
Mule messageMule message
Mule message
kunal vishe
 
Mule debugging logging_configuration_in_mule
Mule debugging logging_configuration_in_muleMule debugging logging_configuration_in_mule
Mule debugging logging_configuration_in_mule
kunal vishe
 
Mule esb-connectors
Mule esb-connectorsMule esb-connectors
Mule esb-connectors
himajareddys
 
Mulethenewtechnology 12549172699166-phpapp03-160421133841
Mulethenewtechnology 12549172699166-phpapp03-160421133841Mulethenewtechnology 12549172699166-phpapp03-160421133841
Mulethenewtechnology 12549172699166-phpapp03-160421133841
ppts123456
 
Mule debugging managing_stack_traces
Mule debugging managing_stack_tracesMule debugging managing_stack_traces
Mule debugging managing_stack_traces
kunal vishe
 
Mule concepts transformers
Mule concepts transformersMule concepts transformers
Mule concepts transformers
kunal vishe
 
Mule Custom Aggregator
Mule Custom AggregatorMule Custom Aggregator
Mule Custom Aggregator
Ankush Sharma
 
Summer School: Achievements and Applications of Contemporary Informatics, Mat...
Summer School: Achievements and Applications of Contemporary Informatics, Mat...Summer School: Achievements and Applications of Contemporary Informatics, Mat...
Summer School: Achievements and Applications of Contemporary Informatics, Mat...
YSF-2015
 
Mule concepts filters scopes_routers
Mule concepts filters scopes_routersMule concepts filters scopes_routers
Mule concepts filters scopes_routers
kunal vishe
 
Mule concepts connectors
Mule concepts connectorsMule concepts connectors
Mule concepts connectors
kunal vishe
 
Mule scopes foreach_scope
Mule scopes foreach_scopeMule scopes foreach_scope
Mule scopes foreach_scope
kunal vishe
 
Mule concepts elements in a mule flow
Mule concepts elements in a mule flowMule concepts elements in a mule flow
Mule concepts elements in a mule flow
kunal vishe
 
Mule debugging logging_in_mule
Mule debugging logging_in_muleMule debugging logging_in_mule
Mule debugging logging_in_mule
kunal vishe
 
Mule data weave_5
Mule data weave_5Mule data weave_5
Mule data weave_5
kunal vishe
 
Mule concepts flows
Mule concepts flowsMule concepts flows
Mule concepts flows
kunal vishe
 
Mule concepts components
Mule concepts componentsMule concepts components
Mule concepts components
kunal vishe
 
Ad

Similar to Mule error handling_rollback exception strategy (20)

Mule concepts exception strategies
Mule concepts exception strategiesMule concepts exception strategies
Mule concepts exception strategies
kunal vishe
 
Mule exception strategies
Mule exception strategiesMule exception strategies
Mule exception strategies
Ramakrishna kapa
 
Error handling
Error handlingError handling
Error handling
krishashi
 
Mule error handling
Mule error handlingMule error handling
Mule error handling
VirtusaPolaris
 
Mule errors
Mule errorsMule errors
Mule errors
Sindhu VL
 
Anypoint Studio - Mule ESB Error Handling
Anypoint Studio - Mule ESB Error HandlingAnypoint Studio - Mule ESB Error Handling
Anypoint Studio - Mule ESB Error Handling
Mani Rathnam Gudi
 
Mule - error handling
Mule - error handling Mule - error handling
Mule - error handling
Sindhu VL
 
Handle exceptions in mule
Handle exceptions in muleHandle exceptions in mule
Handle exceptions in mule
Son Nguyen
 
Error handling in mule
Error handling in muleError handling in mule
Error handling in mule
Sindhu VL
 
Error handling with respect to mule
Error handling with respect to muleError handling with respect to mule
Error handling with respect to mule
Sindhu VL
 
Exception strategies in MuleSoft Anypoint Studio
Exception strategies in MuleSoft Anypoint StudioException strategies in MuleSoft Anypoint Studio
Exception strategies in MuleSoft Anypoint Studio
Jitendra Bafna
 
Cache scope and strategy
Cache scope and strategy Cache scope and strategy
Cache scope and strategy
Harish43
 
Cachescope
CachescopeCachescope
Cachescope
ChittipoluKeshav
 
Mule exception strategies
Mule exception strategiesMule exception strategies
Mule exception strategies
Krishna_in
 
Mule scopes&error handling
Mule scopes&error handlingMule scopes&error handling
Mule scopes&error handling
Sumit Gole
 
Scopes in mule
Scopes in muleScopes in mule
Scopes in mule
Ramakrishna kapa
 
Mule esb flow processing strategies
Mule esb flow processing strategiesMule esb flow processing strategies
Mule esb flow processing strategies
himajareddys
 
Mule error handling_choice exception strategy
Mule error handling_choice exception strategyMule error handling_choice exception strategy
Mule error handling_choice exception strategy
kunal vishe
 
Mule esb overview
Mule esb overviewMule esb overview
Mule esb overview
Gunjan Deshmukh
 
Mule exceptions Strategy
Mule exceptions StrategyMule exceptions Strategy
Mule exceptions Strategy
Padmanabhan Natarajan, CSM
 
Mule concepts exception strategies
Mule concepts exception strategiesMule concepts exception strategies
Mule concepts exception strategies
kunal vishe
 
Error handling
Error handlingError handling
Error handling
krishashi
 
Anypoint Studio - Mule ESB Error Handling
Anypoint Studio - Mule ESB Error HandlingAnypoint Studio - Mule ESB Error Handling
Anypoint Studio - Mule ESB Error Handling
Mani Rathnam Gudi
 
Mule - error handling
Mule - error handling Mule - error handling
Mule - error handling
Sindhu VL
 
Handle exceptions in mule
Handle exceptions in muleHandle exceptions in mule
Handle exceptions in mule
Son Nguyen
 
Error handling in mule
Error handling in muleError handling in mule
Error handling in mule
Sindhu VL
 
Error handling with respect to mule
Error handling with respect to muleError handling with respect to mule
Error handling with respect to mule
Sindhu VL
 
Exception strategies in MuleSoft Anypoint Studio
Exception strategies in MuleSoft Anypoint StudioException strategies in MuleSoft Anypoint Studio
Exception strategies in MuleSoft Anypoint Studio
Jitendra Bafna
 
Cache scope and strategy
Cache scope and strategy Cache scope and strategy
Cache scope and strategy
Harish43
 
Mule exception strategies
Mule exception strategiesMule exception strategies
Mule exception strategies
Krishna_in
 
Mule scopes&error handling
Mule scopes&error handlingMule scopes&error handling
Mule scopes&error handling
Sumit Gole
 
Mule esb flow processing strategies
Mule esb flow processing strategiesMule esb flow processing strategies
Mule esb flow processing strategies
himajareddys
 
Mule error handling_choice exception strategy
Mule error handling_choice exception strategyMule error handling_choice exception strategy
Mule error handling_choice exception strategy
kunal vishe
 
Ad

More from kunal vishe (12)

Mule data weave_10
Mule data weave_10Mule data weave_10
Mule data weave_10
kunal vishe
 
Mule data weave_7
Mule data weave_7Mule data weave_7
Mule data weave_7
kunal vishe
 
Mule data weave_8
Mule data weave_8Mule data weave_8
Mule data weave_8
kunal vishe
 
Mule data weave_6
Mule data weave_6Mule data weave_6
Mule data weave_6
kunal vishe
 
Mule data weave_4
Mule data weave_4Mule data weave_4
Mule data weave_4
kunal vishe
 
Mule data weave_3
Mule data weave_3Mule data weave_3
Mule data weave_3
kunal vishe
 
Mule data weave_2
Mule data weave_2Mule data weave_2
Mule data weave_2
kunal vishe
 
Mule mel 5_tips
Mule mel 5_tipsMule mel 5_tips
Mule mel 5_tips
kunal vishe
 
Mule mel 3
Mule mel 3Mule mel 3
Mule mel 3
kunal vishe
 
Mule mel 2
Mule mel 2Mule mel 2
Mule mel 2
kunal vishe
 
Mule scopes request_response_scope
Mule scopes request_response_scopeMule scopes request_response_scope
Mule scopes request_response_scope
kunal vishe
 
Mule scopes async_scope
Mule scopes async_scopeMule scopes async_scope
Mule scopes async_scope
kunal vishe
 
Mule data weave_10
Mule data weave_10Mule data weave_10
Mule data weave_10
kunal vishe
 
Mule data weave_7
Mule data weave_7Mule data weave_7
Mule data weave_7
kunal vishe
 
Mule data weave_8
Mule data weave_8Mule data weave_8
Mule data weave_8
kunal vishe
 
Mule data weave_6
Mule data weave_6Mule data weave_6
Mule data weave_6
kunal vishe
 
Mule data weave_4
Mule data weave_4Mule data weave_4
Mule data weave_4
kunal vishe
 
Mule data weave_3
Mule data weave_3Mule data weave_3
Mule data weave_3
kunal vishe
 
Mule data weave_2
Mule data weave_2Mule data weave_2
Mule data weave_2
kunal vishe
 
Mule scopes request_response_scope
Mule scopes request_response_scopeMule scopes request_response_scope
Mule scopes request_response_scope
kunal vishe
 
Mule scopes async_scope
Mule scopes async_scopeMule scopes async_scope
Mule scopes async_scope
kunal vishe
 

Recently uploaded (20)

Cryptocurrency Exchange Script like Binance.pptx
Cryptocurrency Exchange Script like Binance.pptxCryptocurrency Exchange Script like Binance.pptx
Cryptocurrency Exchange Script like Binance.pptx
riyageorge2024
 
Apple Logic Pro X Crack FRESH Version 2025
Apple Logic Pro X Crack FRESH Version 2025Apple Logic Pro X Crack FRESH Version 2025
Apple Logic Pro X Crack FRESH Version 2025
fs4635986
 
Societal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainabilitySocietal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainability
Jordi Cabot
 
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdfMicrosoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
TechSoup
 
Automation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath CertificateAutomation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath Certificate
VICTOR MAESTRE RAMIREZ
 
Why Orangescrum Is a Game Changer for Construction Companies in 2025
Why Orangescrum Is a Game Changer for Construction Companies in 2025Why Orangescrum Is a Game Changer for Construction Companies in 2025
Why Orangescrum Is a Game Changer for Construction Companies in 2025
Orangescrum
 
Who Watches the Watchmen (SciFiDevCon 2025)
Who Watches the Watchmen (SciFiDevCon 2025)Who Watches the Watchmen (SciFiDevCon 2025)
Who Watches the Watchmen (SciFiDevCon 2025)
Allon Mureinik
 
Top 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docxTop 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docx
Portli
 
Not So Common Memory Leaks in Java Webinar
Not So Common Memory Leaks in Java WebinarNot So Common Memory Leaks in Java Webinar
Not So Common Memory Leaks in Java Webinar
Tier1 app
 
Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025
mu394968
 
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage DashboardsAdobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
BradBedford3
 
WinRAR Crack for Windows (100% Working 2025)
WinRAR Crack for Windows (100% Working 2025)WinRAR Crack for Windows (100% Working 2025)
WinRAR Crack for Windows (100% Working 2025)
sh607827
 
Odoo ERP for Education Management to Streamline Your Education Process
Odoo ERP for Education Management to Streamline Your Education ProcessOdoo ERP for Education Management to Streamline Your Education Process
Odoo ERP for Education Management to Streamline Your Education Process
iVenture Team LLP
 
Exploring Wayland: A Modern Display Server for the Future
Exploring Wayland: A Modern Display Server for the FutureExploring Wayland: A Modern Display Server for the Future
Exploring Wayland: A Modern Display Server for the Future
ICS
 
Innovative Approaches to Software Dev no good at all
Innovative Approaches to Software Dev no good at allInnovative Approaches to Software Dev no good at all
Innovative Approaches to Software Dev no good at all
ayeshakanwal75
 
Top 10 Data Cleansing Tools for 2025.pdf
Top 10 Data Cleansing Tools for 2025.pdfTop 10 Data Cleansing Tools for 2025.pdf
Top 10 Data Cleansing Tools for 2025.pdf
AffinityCore
 
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Eric D. Schabell
 
Tools of the Trade: Linux and SQL - Google Certificate
Tools of the Trade: Linux and SQL - Google CertificateTools of the Trade: Linux and SQL - Google Certificate
Tools of the Trade: Linux and SQL - Google Certificate
VICTOR MAESTRE RAMIREZ
 
F-Secure Freedome VPN 2025 Crack Plus Activation New Version
F-Secure Freedome VPN 2025 Crack Plus Activation  New VersionF-Secure Freedome VPN 2025 Crack Plus Activation  New Version
F-Secure Freedome VPN 2025 Crack Plus Activation New Version
saimabibi60507
 
Implementing promises with typescripts, step by step
Implementing promises with typescripts, step by stepImplementing promises with typescripts, step by step
Implementing promises with typescripts, step by step
Ran Wahle
 
Cryptocurrency Exchange Script like Binance.pptx
Cryptocurrency Exchange Script like Binance.pptxCryptocurrency Exchange Script like Binance.pptx
Cryptocurrency Exchange Script like Binance.pptx
riyageorge2024
 
Apple Logic Pro X Crack FRESH Version 2025
Apple Logic Pro X Crack FRESH Version 2025Apple Logic Pro X Crack FRESH Version 2025
Apple Logic Pro X Crack FRESH Version 2025
fs4635986
 
Societal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainabilitySocietal challenges of AI: biases, multilinguism and sustainability
Societal challenges of AI: biases, multilinguism and sustainability
Jordi Cabot
 
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdfMicrosoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
Microsoft AI Nonprofit Use Cases and Live Demo_2025.04.30.pdf
TechSoup
 
Automation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath CertificateAutomation Techniques in RPA - UiPath Certificate
Automation Techniques in RPA - UiPath Certificate
VICTOR MAESTRE RAMIREZ
 
Why Orangescrum Is a Game Changer for Construction Companies in 2025
Why Orangescrum Is a Game Changer for Construction Companies in 2025Why Orangescrum Is a Game Changer for Construction Companies in 2025
Why Orangescrum Is a Game Changer for Construction Companies in 2025
Orangescrum
 
Who Watches the Watchmen (SciFiDevCon 2025)
Who Watches the Watchmen (SciFiDevCon 2025)Who Watches the Watchmen (SciFiDevCon 2025)
Who Watches the Watchmen (SciFiDevCon 2025)
Allon Mureinik
 
Top 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docxTop 10 Client Portal Software Solutions for 2025.docx
Top 10 Client Portal Software Solutions for 2025.docx
Portli
 
Not So Common Memory Leaks in Java Webinar
Not So Common Memory Leaks in Java WebinarNot So Common Memory Leaks in Java Webinar
Not So Common Memory Leaks in Java Webinar
Tier1 app
 
Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025Avast Premium Security Crack FREE Latest Version 2025
Avast Premium Security Crack FREE Latest Version 2025
mu394968
 
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage DashboardsAdobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
Adobe Marketo Engage Champion Deep Dive - SFDC CRM Synch V2 & Usage Dashboards
BradBedford3
 
WinRAR Crack for Windows (100% Working 2025)
WinRAR Crack for Windows (100% Working 2025)WinRAR Crack for Windows (100% Working 2025)
WinRAR Crack for Windows (100% Working 2025)
sh607827
 
Odoo ERP for Education Management to Streamline Your Education Process
Odoo ERP for Education Management to Streamline Your Education ProcessOdoo ERP for Education Management to Streamline Your Education Process
Odoo ERP for Education Management to Streamline Your Education Process
iVenture Team LLP
 
Exploring Wayland: A Modern Display Server for the Future
Exploring Wayland: A Modern Display Server for the FutureExploring Wayland: A Modern Display Server for the Future
Exploring Wayland: A Modern Display Server for the Future
ICS
 
Innovative Approaches to Software Dev no good at all
Innovative Approaches to Software Dev no good at allInnovative Approaches to Software Dev no good at all
Innovative Approaches to Software Dev no good at all
ayeshakanwal75
 
Top 10 Data Cleansing Tools for 2025.pdf
Top 10 Data Cleansing Tools for 2025.pdfTop 10 Data Cleansing Tools for 2025.pdf
Top 10 Data Cleansing Tools for 2025.pdf
AffinityCore
 
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Mastering Fluent Bit: Ultimate Guide to Integrating Telemetry Pipelines with ...
Eric D. Schabell
 
Tools of the Trade: Linux and SQL - Google Certificate
Tools of the Trade: Linux and SQL - Google CertificateTools of the Trade: Linux and SQL - Google Certificate
Tools of the Trade: Linux and SQL - Google Certificate
VICTOR MAESTRE RAMIREZ
 
F-Secure Freedome VPN 2025 Crack Plus Activation New Version
F-Secure Freedome VPN 2025 Crack Plus Activation  New VersionF-Secure Freedome VPN 2025 Crack Plus Activation  New Version
F-Secure Freedome VPN 2025 Crack Plus Activation New Version
saimabibi60507
 
Implementing promises with typescripts, step by step
Implementing promises with typescripts, step by stepImplementing promises with typescripts, step by step
Implementing promises with typescripts, step by step
Ran Wahle
 

Mule error handling_rollback exception strategy

  • 2. • A rollback exception strategy can be used to ensure that a message that throws an exception in a flow is rolled back for reprocessing. • A rollback exception strategy can be used when you cannot correct an error when it occurs in a flow. • A rollback exception strategy is normally used to handle errors that occur in a flow that involve a transaction. • If the transaction fails, that is, if a message throws an exception while being processed, then the rollback exception strategy rolls back the transaction in the flow. • If the inbound connector is transactional, Mule delivers the message to the inbound connector of the parent flow again to reattempt processing (that is, message redelivery). Rollback Exception Strategy
  • 3. • When to use : – To manage transactional errors. – To manage unhandled exceptions—​exceptions that the application fails to catch. – Put in flows in which messages require redelivery. • A rollback exception strategy has the potential to introduce an infinite loop of activity within a flow. • To avoid this infinite loop and responsibly manage unresolvable errors, two limitations to a rollback exception strategy can be applied: – Define the maximum number of times that the rollback exception strategy attempts to redeliver the message for processing. – Define a flow to handle messages that exceed the maximum number of redelivery attempts. Rollback Exception Strategy
  • 4. • When to use : – To manage transactional errors. – To manage unhandled exceptions—​exceptions that the application fails to catch. – Put in flows in which messages require redelivery. • A rollback exception strategy has the potential to introduce an infinite loop of activity within a flow. • To avoid this infinite loop and responsibly manage unresolvable errors, two limitations to a rollback exception strategy can be applied: – Define the maximum number of times that the rollback exception strategy attempts to redeliver the message for processing. – Define a flow to handle messages that exceed the maximum number of redelivery attempts. Rollback Exception Strategy
  • 5. • A rollback exception strategy provides multiple attempts for a message to successfully move through a flow before committing a failed transaction and consuming the message, unlike catch exception strategy. • Mule attempts message redelivery when the flow uses one of the following two types of transports: – Transactional • consumes a message as it travels through the flow • transforms it to a different object, or enriches it with more data. • When a message using a transactional transport throws an exception, a rollback exception strategy rolls back the transaction so the transport can return a message to its original state for reprocessing. – Reliable • does not consume a message as it travels through the flow until it can ascertain that the message has successfully reached the end of the flow. • When a message using a reliable transport throws an exception, the rollback exception strategy discards the partially processed message and instructs the flow to attempt processing the original message again. Rollback Exception Strategy
  • 6. • If the flow involves a reliable transport and a rollback exception strategy, you must set the flow’s Processing Strategy to "synchronous". (Configure the Processing Strategy in the Flow Properties panel.) • This is because reliable transports do not consume messages, they wait for messages to successfully complete a flow before consuming the messages; therefore, the flow must process synchronously. • If you deploy a Mule application that contains a flow with an asynchronous processing strategy and a rollback exception strategy configured for message redelivery, the application fails! Rollback Exception Strategy
  • 7. – Transactional Transports : • VM – message rolls back to its original state for reprocessing. • JDBC – message rolls back to its original state for reprocessing. • JMS – message rolls back to its original state for reprocessing. – Reliable Transports : • JMS – The session recovers, that is, Mule discards the copy of the source file and attempts reprocessing the message using a fresh copy. – A JMS redelivery configuration takes precedence over the rollback exception strategy. • FTP – Mule discards the copy of the source file and attempts reprocessing the message using a fresh copy. • File – Mule discards the copy of the source file and attempts reprocessing the message using a fresh copy. • IMAP – Mule does not move the message from the mailbox and attempts reprocessing the message using a fresh copy of the original. Rollback Exception Strategy
  • 8. • Unhandled Exceptions – exceptions that they are unable to resolve by performing corrective measures – Typically, all unhandled exceptions are handled by Mule’s default exception strategy – But you can customize a rollback exception strategy to more efficiently route messages with unhandled exceptions. – Below ways can be used : • For one-way pattern of flow exchange, the rollback exception strategy instructs the inbound connector transport to execute corrective actions. • For request-response pattern rollback exception strategy changes the payload of a message and returns it to the client. Rollback Exception Strategy
  • 9. • Rollback Exception Strategy vs. Default Exception Strategy : – Default Exception Strategy: • Stores the exception information in the payload of the message. • Returns null in the exceptionPayload attributeMessage. • Injects NullPayload as the message’s payload; unable to customize. • Records exception information in the exceptionPayload attribute; unable to customize. – Rollback Exception Strategy: • Retains the information in the message payload at the time the exception was thrown; does not alter the message payload. • Stores the exception information in the exceptionPayload. • Returns the message processing result during execution of the exception strategy. • Records exception information in the exceptionPayload attribute; able to customize. Rollback Exception Strategy
  • 10. • Configuration properties : – Display Name : • A unique name for the rollback exception strategy in your application. – Max redelivery attempts : • an integer to define the number of times you want the rollback exception strategy to roll back a message for reprocessing. • Setting is as 0 : the rollback exception strategy does _*not* _attempt to redeliver the message and throws a MessageRedeliveredException upon the first processing failure. • Setting it as nothing : he rollback exception strategy redelivers the message over and over again, creating an infinite loop. – When : • Enter an expression to indicate the kind of exception the rollback exception should handle. • Expression not defined: – All messages in this flow that throw exceptions are handled by this rollback exception strategy. • Expression defined: – When Mule evaluates the expression against the message being processed and returns true, Mule executes the exception strategy. – Mule’s default exception strategy implicitly handles all exceptions which do not match the expression you have defined in theWhen field. • Enable Notifications: – true (default) » When set to true, instructs Mule to send an exception notification to a registered listener – False » To not to send the notification. Rollback Exception Strategy