SlideShare a Scribd company logo
By Ramakrishna Narkedamilli
Mule Management Console ( MMC ) is a great tool to deploy Mule
applications and control. Using MMC you can perform many operations like
Deploy, Un deploy, Redeploy along with Monitoring of flows etc.
MMC provides options to monitor the failing flows and inform people about
failures. In MMC Alert mechanism you can create Alert definitions for
different types of exceptions and send mail to people using Alert
notifications.
Typically MMC will raise alerts for each exception it encountered on the
configured deployed applications. There is no intelligent mechanism on MMC
itself to raise the Alerts based on exception ratio ( Based on no of service calls
and no of failures among that )
Unfortunately there is no ‘out of the box’ MMC feature to solve this, so we have
to cater for it ourselves. Luckily Mule provides some APIs that give us good
statistical information. Using these APIs, we can write a small class that calculates
the ratio of the error messages coming in a flow compared to the messages that
were processed successfully.
To Monitoring the consistently failing flows from MMC and raising alerts on ratio
based instead of for each exception, we can add
1) Java class to calculate the ratio.
2) Spring code to call the Java class for a period of time Continuously.
3) Spring code to expose value as Mbean
4) Alert creation in MMC for the JMX value (Mbean)
Now Will see how to Implement this
Consider a simple web service like below
Now we will write Java code that calculate the failure ratio
MMC control for failing flows consistently
The idea is to have the monitor() method execute every couple of seconds.
On each execution, we receive updated statistics of execution errors versus
completed executions. From these values, we subtract the same values
recorded in the previous run so that we get the values for just this period.
Once this calculation is complete, we divide the errors with the total
events to get a ratio of the two values. If the ratio exceeds a certain
threshold (by default set to 0.5), then the String class variable
constantlyFailingString is set to true.
Having the monitoring code ready, we need to instruct Mule to execute
this code every few seconds; 10 seconds for example . We also need to tell
ConsistentlyFailingMonitor which Flow to monitor. Spring comes in very
handy to do just that. Spring code we need add the in the simple web
service mule flow and it follows like
Below XML code shows the call of Java code for every 20000 milliseconds time
So at this stage, we have a class monitoring our flow for a stream of
consistently failing messages. This is all well and good, but we need a way to
raise an alert if our flow is failing. For this will use JMX attribute. The value of
ratio we stored in a variable that we need to expose as a Bean, SO MMC will
monitor bean and if it crossed the mentioned thresh hold value, it will raise
Alert.
To expose as Bean again we need to use Spring and the XML code follows like
below
To Review what ever done, it follows like
1) We created sample web service.
2) We created Java code to monitor the failures and calculate ratio.
3) Configured Spring code in Mule flow, to call the Java code continuously.
4) Configured Spring code to expose the Ration Value as bean.
After these steps, below steps need be done in MMC
5) Create alert definition for the JMX value and configure the threshold value.
Whenever the JMX value (Ration value ) crosses the threshold value, MMC will
raise Alert.
I hope this will help.
THANK YOU
By Ramakrishna Narkedamilli

More Related Content

Similar to MMC control for failing flows consistently (20)

Moving towards Reactive Programming
Moving towards Reactive ProgrammingMoving towards Reactive Programming
Moving towards Reactive Programming
Deepak Shevani
 
Tips and Tricks for new async web client capabilities on model driven apps
Tips and Tricks for new async web client capabilities on model driven appsTips and Tricks for new async web client capabilities on model driven apps
Tips and Tricks for new async web client capabilities on model driven apps
Mehdi El Amri
 
SAS Macros part 1
SAS Macros part 1SAS Macros part 1
SAS Macros part 1
venkatam
 
Loadrunner interview questions and answers
Loadrunner interview questions and answersLoadrunner interview questions and answers
Loadrunner interview questions and answers
Garuda Trainings
 
Flows in mule
Flows in muleFlows in mule
Flows in mule
Son Nguyen
 
Jmh
JmhJmh
Jmh
NexThoughts Technologies
 
MUnit Testing With Mulesoft (Mock Message Processor)-Part II
MUnit Testing With Mulesoft (Mock Message Processor)-Part II MUnit Testing With Mulesoft (Mock Message Processor)-Part II
MUnit Testing With Mulesoft (Mock Message Processor)-Part II
Jitendra Bafna
 
selenium_master.pdf
selenium_master.pdfselenium_master.pdf
selenium_master.pdf
UdaytejaTiyyala1
 
Flowsinmule 160517130818
Flowsinmule 160517130818Flowsinmule 160517130818
Flowsinmule 160517130818
ppts123456
 
CV_Amit_Bhanegaonkar_BE._with_4.11_years_of_experience_in_Software_Testing
CV_Amit_Bhanegaonkar_BE._with_4.11_years_of_experience_in_Software_TestingCV_Amit_Bhanegaonkar_BE._with_4.11_years_of_experience_in_Software_Testing
CV_Amit_Bhanegaonkar_BE._with_4.11_years_of_experience_in_Software_Testing
Amit Bhanegaonkar
 
Roboconf Detailed Presentation
Roboconf Detailed PresentationRoboconf Detailed Presentation
Roboconf Detailed Presentation
Vincent Zurczak
 
Broker Pattern Backbone of Distributed Processing
Broker Pattern Backbone of Distributed ProcessingBroker Pattern Backbone of Distributed Processing
Broker Pattern Backbone of Distributed Processing
Nilay Mishra
 
Component based message alerting on as abap scn
Component based message alerting on as abap   scnComponent based message alerting on as abap   scn
Component based message alerting on as abap scn
Pradeep Tiwary
 
Common Sense Driven Development
Common Sense Driven DevelopmentCommon Sense Driven Development
Common Sense Driven Development
Bozhidar Bozhanov
 
Software defect estimation using machine learning algorithms
Software defect estimation using machine learning algorithmsSoftware defect estimation using machine learning algorithms
Software defect estimation using machine learning algorithms
Venkat Projects
 
Software defect estimation using machine learning algorithms
Software defect estimation using machine learning algorithmsSoftware defect estimation using machine learning algorithms
Software defect estimation using machine learning algorithms
Venkat Projects
 
Dynamic autoselection and autotuning of machine learning models forcloud netw...
Dynamic autoselection and autotuning of machine learning models forcloud netw...Dynamic autoselection and autotuning of machine learning models forcloud netw...
Dynamic autoselection and autotuning of machine learning models forcloud netw...
Venkat Projects
 
Microservices in Action: putting microservice-based applications into production
Microservices in Action: putting microservice-based applications into productionMicroservices in Action: putting microservice-based applications into production
Microservices in Action: putting microservice-based applications into production
Manning Publications
 
SAS Macro
SAS MacroSAS Macro
SAS Macro
Sonal Shrivastav
 
Model Execution and System Simulation
Model Execution and System SimulationModel Execution and System Simulation
Model Execution and System Simulation
Obeo
 
Moving towards Reactive Programming
Moving towards Reactive ProgrammingMoving towards Reactive Programming
Moving towards Reactive Programming
Deepak Shevani
 
Tips and Tricks for new async web client capabilities on model driven apps
Tips and Tricks for new async web client capabilities on model driven appsTips and Tricks for new async web client capabilities on model driven apps
Tips and Tricks for new async web client capabilities on model driven apps
Mehdi El Amri
 
SAS Macros part 1
SAS Macros part 1SAS Macros part 1
SAS Macros part 1
venkatam
 
Loadrunner interview questions and answers
Loadrunner interview questions and answersLoadrunner interview questions and answers
Loadrunner interview questions and answers
Garuda Trainings
 
MUnit Testing With Mulesoft (Mock Message Processor)-Part II
MUnit Testing With Mulesoft (Mock Message Processor)-Part II MUnit Testing With Mulesoft (Mock Message Processor)-Part II
MUnit Testing With Mulesoft (Mock Message Processor)-Part II
Jitendra Bafna
 
Flowsinmule 160517130818
Flowsinmule 160517130818Flowsinmule 160517130818
Flowsinmule 160517130818
ppts123456
 
CV_Amit_Bhanegaonkar_BE._with_4.11_years_of_experience_in_Software_Testing
CV_Amit_Bhanegaonkar_BE._with_4.11_years_of_experience_in_Software_TestingCV_Amit_Bhanegaonkar_BE._with_4.11_years_of_experience_in_Software_Testing
CV_Amit_Bhanegaonkar_BE._with_4.11_years_of_experience_in_Software_Testing
Amit Bhanegaonkar
 
Roboconf Detailed Presentation
Roboconf Detailed PresentationRoboconf Detailed Presentation
Roboconf Detailed Presentation
Vincent Zurczak
 
Broker Pattern Backbone of Distributed Processing
Broker Pattern Backbone of Distributed ProcessingBroker Pattern Backbone of Distributed Processing
Broker Pattern Backbone of Distributed Processing
Nilay Mishra
 
Component based message alerting on as abap scn
Component based message alerting on as abap   scnComponent based message alerting on as abap   scn
Component based message alerting on as abap scn
Pradeep Tiwary
 
Common Sense Driven Development
Common Sense Driven DevelopmentCommon Sense Driven Development
Common Sense Driven Development
Bozhidar Bozhanov
 
Software defect estimation using machine learning algorithms
Software defect estimation using machine learning algorithmsSoftware defect estimation using machine learning algorithms
Software defect estimation using machine learning algorithms
Venkat Projects
 
Software defect estimation using machine learning algorithms
Software defect estimation using machine learning algorithmsSoftware defect estimation using machine learning algorithms
Software defect estimation using machine learning algorithms
Venkat Projects
 
Dynamic autoselection and autotuning of machine learning models forcloud netw...
Dynamic autoselection and autotuning of machine learning models forcloud netw...Dynamic autoselection and autotuning of machine learning models forcloud netw...
Dynamic autoselection and autotuning of machine learning models forcloud netw...
Venkat Projects
 
Microservices in Action: putting microservice-based applications into production
Microservices in Action: putting microservice-based applications into productionMicroservices in Action: putting microservice-based applications into production
Microservices in Action: putting microservice-based applications into production
Manning Publications
 
Model Execution and System Simulation
Model Execution and System SimulationModel Execution and System Simulation
Model Execution and System Simulation
Obeo
 

More from Ramakrishna Narkedamilli (9)

Enabling Security For ActiveMQ JMX Access
Enabling Security For ActiveMQ JMX AccessEnabling Security For ActiveMQ JMX Access
Enabling Security For ActiveMQ JMX Access
Ramakrishna Narkedamilli
 
Mule Requester Usage Demo
Mule Requester Usage DemoMule Requester Usage Demo
Mule Requester Usage Demo
Ramakrishna Narkedamilli
 
Mule Integration with Dropbox
Mule Integration with DropboxMule Integration with Dropbox
Mule Integration with Dropbox
Ramakrishna Narkedamilli
 
Mule ESB integration with Stripe
Mule ESB integration with StripeMule ESB integration with Stripe
Mule ESB integration with Stripe
Ramakrishna Narkedamilli
 
Activemq installation and master slave setup using shared broker data
Activemq installation and master slave setup using shared broker dataActivemq installation and master slave setup using shared broker data
Activemq installation and master slave setup using shared broker data
Ramakrishna Narkedamilli
 
Mule integration with Servicenow
Mule integration with ServicenowMule integration with Servicenow
Mule integration with Servicenow
Ramakrishna Narkedamilli
 
Active mq Installation and Master Slave setup
Active mq Installation and Master Slave setupActive mq Installation and Master Slave setup
Active mq Installation and Master Slave setup
Ramakrishna Narkedamilli
 
Custom connector development using mule DevKit
Custom connector development using mule DevKitCustom connector development using mule DevKit
Custom connector development using mule DevKit
Ramakrishna Narkedamilli
 
Salesforce Integration Using javacode
Salesforce Integration Using javacodeSalesforce Integration Using javacode
Salesforce Integration Using javacode
Ramakrishna Narkedamilli
 

Recently uploaded (20)

Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Rusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond SparkRusty Waters: Elevating Lakehouses Beyond Spark
Rusty Waters: Elevating Lakehouses Beyond Spark
carlyakerly1
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven InsightsAndrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell: Transforming Business Strategy Through Data-Driven Insights
Andrew Marnell
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul Shares 5 Steps to Implement AI Agents for Maximum Business Efficien...
Noah Loul
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Massive Power Outage Hits Spain, Portugal, and France: Causes, Impact, and On...
Aqusag Technologies
 

MMC control for failing flows consistently

  • 2. Mule Management Console ( MMC ) is a great tool to deploy Mule applications and control. Using MMC you can perform many operations like Deploy, Un deploy, Redeploy along with Monitoring of flows etc. MMC provides options to monitor the failing flows and inform people about failures. In MMC Alert mechanism you can create Alert definitions for different types of exceptions and send mail to people using Alert notifications.
  • 3. Typically MMC will raise alerts for each exception it encountered on the configured deployed applications. There is no intelligent mechanism on MMC itself to raise the Alerts based on exception ratio ( Based on no of service calls and no of failures among that )
  • 4. Unfortunately there is no ‘out of the box’ MMC feature to solve this, so we have to cater for it ourselves. Luckily Mule provides some APIs that give us good statistical information. Using these APIs, we can write a small class that calculates the ratio of the error messages coming in a flow compared to the messages that were processed successfully. To Monitoring the consistently failing flows from MMC and raising alerts on ratio based instead of for each exception, we can add 1) Java class to calculate the ratio. 2) Spring code to call the Java class for a period of time Continuously. 3) Spring code to expose value as Mbean 4) Alert creation in MMC for the JMX value (Mbean) Now Will see how to Implement this
  • 5. Consider a simple web service like below
  • 6. Now we will write Java code that calculate the failure ratio
  • 8. The idea is to have the monitor() method execute every couple of seconds. On each execution, we receive updated statistics of execution errors versus completed executions. From these values, we subtract the same values recorded in the previous run so that we get the values for just this period. Once this calculation is complete, we divide the errors with the total events to get a ratio of the two values. If the ratio exceeds a certain threshold (by default set to 0.5), then the String class variable constantlyFailingString is set to true. Having the monitoring code ready, we need to instruct Mule to execute this code every few seconds; 10 seconds for example . We also need to tell ConsistentlyFailingMonitor which Flow to monitor. Spring comes in very handy to do just that. Spring code we need add the in the simple web service mule flow and it follows like
  • 9. Below XML code shows the call of Java code for every 20000 milliseconds time
  • 10. So at this stage, we have a class monitoring our flow for a stream of consistently failing messages. This is all well and good, but we need a way to raise an alert if our flow is failing. For this will use JMX attribute. The value of ratio we stored in a variable that we need to expose as a Bean, SO MMC will monitor bean and if it crossed the mentioned thresh hold value, it will raise Alert. To expose as Bean again we need to use Spring and the XML code follows like below
  • 11. To Review what ever done, it follows like 1) We created sample web service. 2) We created Java code to monitor the failures and calculate ratio. 3) Configured Spring code in Mule flow, to call the Java code continuously. 4) Configured Spring code to expose the Ration Value as bean. After these steps, below steps need be done in MMC 5) Create alert definition for the JMX value and configure the threshold value. Whenever the JMX value (Ration value ) crosses the threshold value, MMC will raise Alert. I hope this will help.
  • 12. THANK YOU By Ramakrishna Narkedamilli