SlideShare a Scribd company logo
Number Of VM Message
We will find the number of VM Message
using java component using Mule
Context(Access using @Inject Annotation)
Object by implementing Callable interface
Number Of VM Message - Flow
• HTTP is used as in-bound connector
• VM is used to store the message
• Java component is used to find the number of
message in VM
• Object to String used to convert Object(Returned by
Java) to String
Number Of VM Message - VM
• Set Exchange Pattern as one-way
• Queue path as “sunil”
• Connector Configuration named as “VM” as
<default-in-memory-queue-store/>
Number Of VM Message - Java
Number Of VM Message – Java
Contd..
• Using “@Inject”(javax.inject.Inject) Annotation to get
the MuleContext(org.mule.api.MuleContext) Object
• Implements Callable (org.mule.api.lifecycle.Callable)
Interface
• Implemnts methos onCall to get access to
MuleEventContext
• Use MuleContext to get the size as
“((VMConnector)muleContext.getRegistry().lookupCon
nector("VM")).getQueueManager().
getQueueSession().getQueue("sunil").size()”
Number Of VM Message – Java
Contd..
• Using “@Inject”(javax.inject.Inject) Annotation to get
the MuleContext(org.mule.api.MuleContext) Object
• Implements Callable (org.mule.api.lifecycle.Callable)
Interface
• Implemnts methos onCall to get access to
MuleEventContext
• Use MuleContext to get the size as
“((VMConnector)muleContext.getRegistry().lookupCon
nector("VM")).getQueueManager().
getQueueSession().getQueue("sunil").size()”

More Related Content

What's hot (20)

PPT
Symbian OS
NIKHIL NAIR
 
PPTX
NETCONF YANG tutorial
Tail-f Systems
 
PPTX
Ii 1500-publishing your android application
Adrian Mikeliunas
 
PPTX
Ch2 - SW Processes
Harsh Verdhan Raj
 
PPT
Unit 3(advanced state modeling & interaction meodelling)
Manoj Reddy
 
PPT
OpenVMS Today
Stanley F. Quayle
 
PPTX
Android app development ppt
saitej15
 
DOCX
Internship in Ciel HR - Rebin J Anselm
Rebin J Anselm
 
DOCX
The complete srs documentation of our developed game.
Isfand yar Khan
 
PDF
Introduction to Mobile Application Development
Tharindu Dassanayake
 
PPTX
Software requirement engineering
Syed Zaid Irshad
 
PDF
Ericsson Distributed Cloud
Ericsson
 
PDF
Consuming Web Services in Android
David Truxall
 
PPTX
BRICKS,BREADS & BONES
SONIRENTERPRISES
 
PPTX
7 stages of system Development life cycle ppt
IphsTechnologies
 
PDF
MuleSoft Nashik Virtual Meetup#4 - Implementing CI/CD pipeline for deploying ...
Jitendra Bafna
 
PDF
Android media
Krazy Koder
 
DOC
Android Sos app development report
Sudhanshu kumar Sah
 
PDF
Android telephony stack
David Marques
 
PPT
Mobile application development
Eric Cattoir
 
Symbian OS
NIKHIL NAIR
 
NETCONF YANG tutorial
Tail-f Systems
 
Ii 1500-publishing your android application
Adrian Mikeliunas
 
Ch2 - SW Processes
Harsh Verdhan Raj
 
Unit 3(advanced state modeling & interaction meodelling)
Manoj Reddy
 
OpenVMS Today
Stanley F. Quayle
 
Android app development ppt
saitej15
 
Internship in Ciel HR - Rebin J Anselm
Rebin J Anselm
 
The complete srs documentation of our developed game.
Isfand yar Khan
 
Introduction to Mobile Application Development
Tharindu Dassanayake
 
Software requirement engineering
Syed Zaid Irshad
 
Ericsson Distributed Cloud
Ericsson
 
Consuming Web Services in Android
David Truxall
 
BRICKS,BREADS & BONES
SONIRENTERPRISES
 
7 stages of system Development life cycle ppt
IphsTechnologies
 
MuleSoft Nashik Virtual Meetup#4 - Implementing CI/CD pipeline for deploying ...
Jitendra Bafna
 
Android media
Krazy Koder
 
Android Sos app development report
Sudhanshu kumar Sah
 
Android telephony stack
David Marques
 
Mobile application development
Eric Cattoir
 

Similar to Find Number of VM message in Mule (20)

PDF
Java Servlet Programming under Ubuntu Linux by Tushar B Kute
Tushar B Kute
 
PPT
Servlets
Sasidhar Kothuru
 
PPTX
Swift storlets-fishbowl
Eran Rom
 
PPT
JAVA Servlets
deepak kumar
 
PPT
Start stop mule flow using java
Sunil Kumar
 
PPT
Module 4.pptModule 4.pptModule 4.pptModule 4.ppt
tahirnaquash2
 
PPT
Servlet ppt by vikas jagtap
Vikas Jagtap
 
PPTX
servlets sessions and cookies, jdbc connectivity
snehalatha790700
 
PPTX
IP UNIT III PPT.pptx
ssuser92282c
 
PDF
Servlet and JSP
Gary Yeh
 
PPTX
Java in mule part 1
vasanthii9
 
PDF
GWT Web Socket and data serialization
GWTcon
 
PDF
Mule ESB
Yura Nosenko
 
PPTX
Servlets
Bala Murugan
 
PDF
KubeCon 2018 - Running VM Workloads Side by Side with Container Workloads
loodse
 
PPTX
SERVLETS (2).pptxintroduction to servlet with all servlets
RadhikaP41
 
PDF
Liit tyit sem 5 enterprise java unit 1 notes 2018
tanujaparihar
 
PDF
Spring ws
Souleymane MATO
 
PDF
quickguide-einnovator-11-spring-integration
jorgesimao71
 
PPT
Servlet
Rajesh Roky
 
Java Servlet Programming under Ubuntu Linux by Tushar B Kute
Tushar B Kute
 
Swift storlets-fishbowl
Eran Rom
 
JAVA Servlets
deepak kumar
 
Start stop mule flow using java
Sunil Kumar
 
Module 4.pptModule 4.pptModule 4.pptModule 4.ppt
tahirnaquash2
 
Servlet ppt by vikas jagtap
Vikas Jagtap
 
servlets sessions and cookies, jdbc connectivity
snehalatha790700
 
IP UNIT III PPT.pptx
ssuser92282c
 
Servlet and JSP
Gary Yeh
 
Java in mule part 1
vasanthii9
 
GWT Web Socket and data serialization
GWTcon
 
Mule ESB
Yura Nosenko
 
Servlets
Bala Murugan
 
KubeCon 2018 - Running VM Workloads Side by Side with Container Workloads
loodse
 
SERVLETS (2).pptxintroduction to servlet with all servlets
RadhikaP41
 
Liit tyit sem 5 enterprise java unit 1 notes 2018
tanujaparihar
 
Spring ws
Souleymane MATO
 
quickguide-einnovator-11-spring-integration
jorgesimao71
 
Servlet
Rajesh Roky
 
Ad

More from Sunil Kumar (8)

PPT
Distributed Locking in Mule
Sunil Kumar
 
PPT
IP Based Security Filter in Mule
Sunil Kumar
 
PPT
Time based Security Filter in Mule
Sunil Kumar
 
PPT
Parallel processing for splitter in mule esb
Sunil Kumar
 
PPT
Vm file store
Sunil Kumar
 
PPT
Custom transformer and annotation
Sunil Kumar
 
PPT
Custom processor
Sunil Kumar
 
PPT
Signature Security mule
Sunil Kumar
 
Distributed Locking in Mule
Sunil Kumar
 
IP Based Security Filter in Mule
Sunil Kumar
 
Time based Security Filter in Mule
Sunil Kumar
 
Parallel processing for splitter in mule esb
Sunil Kumar
 
Vm file store
Sunil Kumar
 
Custom transformer and annotation
Sunil Kumar
 
Custom processor
Sunil Kumar
 
Signature Security mule
Sunil Kumar
 
Ad

Recently uploaded (20)

PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 

Find Number of VM message in Mule

  • 1. Number Of VM Message We will find the number of VM Message using java component using Mule Context(Access using @Inject Annotation) Object by implementing Callable interface
  • 2. Number Of VM Message - Flow • HTTP is used as in-bound connector • VM is used to store the message • Java component is used to find the number of message in VM • Object to String used to convert Object(Returned by Java) to String
  • 3. Number Of VM Message - VM • Set Exchange Pattern as one-way • Queue path as “sunil” • Connector Configuration named as “VM” as <default-in-memory-queue-store/>
  • 4. Number Of VM Message - Java
  • 5. Number Of VM Message – Java Contd.. • Using “@Inject”(javax.inject.Inject) Annotation to get the MuleContext(org.mule.api.MuleContext) Object • Implements Callable (org.mule.api.lifecycle.Callable) Interface • Implemnts methos onCall to get access to MuleEventContext • Use MuleContext to get the size as “((VMConnector)muleContext.getRegistry().lookupCon nector("VM")).getQueueManager(). getQueueSession().getQueue("sunil").size()”
  • 6. Number Of VM Message – Java Contd.. • Using “@Inject”(javax.inject.Inject) Annotation to get the MuleContext(org.mule.api.MuleContext) Object • Implements Callable (org.mule.api.lifecycle.Callable) Interface • Implemnts methos onCall to get access to MuleEventContext • Use MuleContext to get the size as “((VMConnector)muleContext.getRegistry().lookupCon nector("VM")).getQueueManager(). getQueueSession().getQueue("sunil").size()”