SlideShare uma empresa Scribd logo
1 de 15
Mule with Stored Procedure
Mule's database component allows us to connect with almost
any Java Database Connectivity (JDBC) relational database
and it has wonderful capabilities to perform various
functionalities and run diverse SQL operations on our
database, including Select, Insert, Update, Delete, and even
Stored Procedures.
We will have a look here on how to use Stored Procedures
with our Mule database component. So, before we start
using Stored Procedures in our Mule, we will create a Stored
Procedures in the database and then call to from our Mule
application.
Creating a Store Procedure
Creating a Store Procedure
So, we will get into our database and create a Stored Procedures
there. In our case we will use MS SQL.
Let's create Stored Procedure by following way :
After our Stored Procedure has been created successfully we will
test it in following way :-
Stored Procedure with Mule
So, now we will try to call this Stored Procedure from our Mule
application in following way :-
The corresponding Mule flow in graphical will be as following:-
Testing our application ……
Now, we are done with our coding and will deploy our application
and test it.
So, now if we will hit the url :- http://localhost:8081/test/test in
browser, we will get the following result in Mule console :-
Conclusion
As we can see it's very simple to call any Stored Procedure from
our Mule application as the database component of Mule supports
diverse SQL operations and Stored Procedures on our Database.
That's all !!! I've hopefully been clear enough in displaying the
implementation of database component and calling Stored
Procedure from our Mule application.
I hope you liked this !!!
Hope you enjoyed the simple yet an amazing trick in Mule
You can also find this post here :- http://bushorn.com/mule-with-
stored-procedure/
Mule with stored procedure

Mais conteúdo relacionado

Mais procurados (10)

Webservice vm in mule
Webservice vm in muleWebservice vm in mule
Webservice vm in mule
 
Deploying and Running in Mule
Deploying and Running in MuleDeploying and Running in Mule
Deploying and Running in Mule
 
Deploy apps in standalone with maven
Deploy apps in standalone with mavenDeploy apps in standalone with maven
Deploy apps in standalone with maven
 
Mule with velocity
Mule with velocityMule with velocity
Mule with velocity
 
Accessing jms in mule using groovy
Accessing jms in mule using groovyAccessing jms in mule using groovy
Accessing jms in mule using groovy
 
Mule message enricher
Mule message enricherMule message enricher
Mule message enricher
 
Web service vm in mule
Web service vm in muleWeb service vm in mule
Web service vm in mule
 
Scatter and gather in mule
Scatter and gather in muleScatter and gather in mule
Scatter and gather in mule
 
Mule soap
Mule soapMule soap
Mule soap
 
Mule quartz
Mule quartz Mule quartz
Mule quartz
 

Destaque

Services Presentation
Services PresentationServices Presentation
Services Presentation
ccastanedo
 
PRACTICA 4. Documento
PRACTICA 4. DocumentoPRACTICA 4. Documento
PRACTICA 4. Documento
cr-peinado
 
Mapa conceptual de método y técnica
Mapa conceptual de método y técnicaMapa conceptual de método y técnica
Mapa conceptual de método y técnica
monzonreyes
 

Destaque (20)

Services Presentation
Services PresentationServices Presentation
Services Presentation
 
Memoria Ram
Memoria RamMemoria Ram
Memoria Ram
 
Angela nazar mengingatmu
Angela nazar   mengingatmuAngela nazar   mengingatmu
Angela nazar mengingatmu
 
Satiraju Resume. rev 1
Satiraju Resume. rev 1Satiraju Resume. rev 1
Satiraju Resume. rev 1
 
PRACTICA 4. Documento
PRACTICA 4. DocumentoPRACTICA 4. Documento
PRACTICA 4. Documento
 
El país de las hojas sueltas. tomo iv. tiempos de constitucionalistas y del g...
El país de las hojas sueltas. tomo iv. tiempos de constitucionalistas y del g...El país de las hojas sueltas. tomo iv. tiempos de constitucionalistas y del g...
El país de las hojas sueltas. tomo iv. tiempos de constitucionalistas y del g...
 
Core Java Basics
Core Java BasicsCore Java Basics
Core Java Basics
 
Pred. de inv. blanca pereira corregido
Pred. de inv. blanca pereira corregidoPred. de inv. blanca pereira corregido
Pred. de inv. blanca pereira corregido
 
Mapa conceptual de método y técnica
Mapa conceptual de método y técnicaMapa conceptual de método y técnica
Mapa conceptual de método y técnica
 
Adm obra.
Adm obra. Adm obra.
Adm obra.
 
Java Core. Lecture# 4. Collections.
Java Core. Lecture# 4. Collections.Java Core. Lecture# 4. Collections.
Java Core. Lecture# 4. Collections.
 
PRESENTACION LENGUAJE C
 PRESENTACION LENGUAJE C  PRESENTACION LENGUAJE C
PRESENTACION LENGUAJE C
 
Clasificacion de los elementos quimicos Mayra Chadán UCE
Clasificacion de los elementos quimicos Mayra Chadán UCEClasificacion de los elementos quimicos Mayra Chadán UCE
Clasificacion de los elementos quimicos Mayra Chadán UCE
 
Mapa mental de presideño
Mapa mental de  presideñoMapa mental de  presideño
Mapa mental de presideño
 
Ensayo de valores
Ensayo de valoresEnsayo de valores
Ensayo de valores
 
Chimiko’s chocolate
Chimiko’s chocolateChimiko’s chocolate
Chimiko’s chocolate
 
Triptico celula Animal y Vegetal
Triptico  celula Animal y VegetalTriptico  celula Animal y Vegetal
Triptico celula Animal y Vegetal
 
Hidrologia. calculo de precipitacion.
Hidrologia. calculo de precipitacion.Hidrologia. calculo de precipitacion.
Hidrologia. calculo de precipitacion.
 
Tipos de Volcanes
Tipos de VolcanesTipos de Volcanes
Tipos de Volcanes
 
2013 Programm Akademie EE.pdf
2013 Programm Akademie EE.pdf2013 Programm Akademie EE.pdf
2013 Programm Akademie EE.pdf
 

Semelhante a Mule with stored procedure

Semelhante a Mule with stored procedure (20)

Stored procedure in mule
Stored procedure in muleStored procedure in mule
Stored procedure in mule
 
Stored procedure in mule
Stored procedure in muleStored procedure in mule
Stored procedure in mule
 
Cache for community edition
Cache for community editionCache for community edition
Cache for community edition
 
Cache for community edition
Cache for community edition Cache for community edition
Cache for community edition
 
Community edition Cache
Community edition CacheCommunity edition Cache
Community edition Cache
 
Cache for community edition
Cache for community editionCache for community edition
Cache for community edition
 
Cache community edition
Cache community edition Cache community edition
Cache community edition
 
Cache for community edition
Cache for community edition Cache for community edition
Cache for community edition
 
Cache for community edition
Cache for community edition Cache for community edition
Cache for community edition
 
Cache for community edition
Cache for community editionCache for community edition
Cache for community edition
 
Cache for community edition
Cache for community editionCache for community edition
Cache for community edition
 
Cache for community edition
Cache for community editionCache for community edition
Cache for community edition
 
Mule with stored procedure
Mule with stored procedureMule with stored procedure
Mule with stored procedure
 
Cache for community edition
Cache for community editionCache for community edition
Cache for community edition
 
Deploy with maven
Deploy with mavenDeploy with maven
Deploy with maven
 
Deploying and running in mule standalone
Deploying and running in mule standaloneDeploying and running in mule standalone
Deploying and running in mule standalone
 
Deploying and running in mule standalone
Deploying and running in mule standaloneDeploying and running in mule standalone
Deploying and running in mule standalone
 
Deploying and running in mule standalone
Deploying and running in mule standaloneDeploying and running in mule standalone
Deploying and running in mule standalone
 
Webapplicationwithmule by nagarjuanreddy
Webapplicationwithmule by nagarjuanreddyWebapplicationwithmule by nagarjuanreddy
Webapplicationwithmule by nagarjuanreddy
 
Running mule from java
Running mule from javaRunning mule from java
Running mule from java
 

Mais de Mohammed625 (15)

Mule with drools
Mule with drools Mule with drools
Mule with drools
 
Creating dynamic json
Creating dynamic json Creating dynamic json
Creating dynamic json
 
Simple groovy example in mule
Simple groovy example in mule Simple groovy example in mule
Simple groovy example in mule
 
Webservice with vm in mule
Webservice with vm in mule Webservice with vm in mule
Webservice with vm in mule
 
Mule real world old
Mule real world oldMule real world old
Mule real world old
 
Mule esb introduction
Mule esb introductionMule esb introduction
Mule esb introduction
 
Mule overview
Mule overviewMule overview
Mule overview
 
Mule technology
Mule technologyMule technology
Mule technology
 
Presentation
PresentationPresentation
Presentation
 
Scatter gather in mule
Scatter gather in muleScatter gather in mule
Scatter gather in mule
 
Xml to xml transformation in mule
Xml to xml transformation in muleXml to xml transformation in mule
Xml to xml transformation in mule
 
Java multithreading
Java multithreadingJava multithreading
Java multithreading
 
WebServices using Soap
WebServices using SoapWebServices using Soap
WebServices using Soap
 
Sunstate
SunstateSunstate
Sunstate
 
MuleEsb
MuleEsbMuleEsb
MuleEsb
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 

Mule with stored procedure

  • 1. Mule with Stored Procedure
  • 2. Mule's database component allows us to connect with almost any Java Database Connectivity (JDBC) relational database and it has wonderful capabilities to perform various functionalities and run diverse SQL operations on our database, including Select, Insert, Update, Delete, and even Stored Procedures. We will have a look here on how to use Stored Procedures with our Mule database component. So, before we start using Stored Procedures in our Mule, we will create a Stored Procedures in the database and then call to from our Mule application.
  • 3. Creating a Store Procedure
  • 4. Creating a Store Procedure
  • 5. So, we will get into our database and create a Stored Procedures there. In our case we will use MS SQL. Let's create Stored Procedure by following way :
  • 6. After our Stored Procedure has been created successfully we will test it in following way :-
  • 8. So, now we will try to call this Stored Procedure from our Mule application in following way :-
  • 9. The corresponding Mule flow in graphical will be as following:-
  • 11. Now, we are done with our coding and will deploy our application and test it. So, now if we will hit the url :- http://localhost:8081/test/test in browser, we will get the following result in Mule console :-
  • 13. As we can see it's very simple to call any Stored Procedure from our Mule application as the database component of Mule supports diverse SQL operations and Stored Procedures on our Database. That's all !!! I've hopefully been clear enough in displaying the implementation of database component and calling Stored Procedure from our Mule application. I hope you liked this !!!
  • 14. Hope you enjoyed the simple yet an amazing trick in Mule You can also find this post here :- http://bushorn.com/mule-with- stored-procedure/