SlideShare a Scribd company logo
By Anirban Sen Chowdhary
Before we start let’s look what actually a stored procedure is.
Stored procedure :- A stored procedure which is also called
proc, storp, sproc, StoPro,StoredProc, StoreProc, sp or SP is actually
stored in the database data dictionary.
Source:- Wikipidea
The main advantages of Stored procedure are :-
Maintainability
It is easier to maintain scripts containing stored procedure
Testing
It can be tested independent of the application
Isolation of Business Rules
Having Stored Procedures in one location means that business rules are
separated from disparate code files in the application
Speed / Optimization
Stored procedures can be cached on the server
Execution plans for the process are easily reviewable without having to run
the application
Security
It limit direct access to tables via defined roles in the database and also
provide an "interface" to the underlying data structure so that all
implementation and even the data itself is shielded.
How are Stored procedure called :-
Through
CALL procedure(...)
or
EXECUTE procedure(...)
So, Do Mule Database component supports Stored procedure and
how can we run a Stored procedure from Mule Database component ????
Yes, Mule Database component supports executing Stored procedure
So let us create a Stored Procedure in our database:, I used SQL server in
my case-
You can see the how our Stored procedure is created.
Let our Stored procedure name be testStoredProccedure , and this
Stored procedure will retrieve all the data from Database:-
Now we click execute button as below, our testStoredProccedure is
created :-
So, our Mule flow will be following :-
This Mule flow will retrieve all the data from Database using the
Stored procedure
Our Mule config will be following :-
You can see the database component is calling the Stored procedure
testStoredProccedure
Now, lets hit the url http://localhost:8081 and test our application:-
If you now check the console you will find the Stored procedure is
executed and data are retrieved from Database
That’s it … Now you can try this example by your own and can execute
your Stored procedure ..
Hope you enjoyed this little trick …
Happy coding and share your knowledge everywhere 
Mule with stored procedure

More Related Content

PPTX
KScope14 Jython Scripting
PPTX
IBM MQ vs Apache ActiveMQ
PDF
Finit solutions - Automating Data Loads with FDMEE
PDF
Protect your Private Data in your Hadoop Clusters with ORC Column Encryption
PPT
Less05 storage
PPTX
Oracle GoldenGate 18c - REST API Examples
PPTX
Mongodb backup
PPTX
7가지 동시성 모델 - 3장. 함수형 프로그래밍
KScope14 Jython Scripting
IBM MQ vs Apache ActiveMQ
Finit solutions - Automating Data Loads with FDMEE
Protect your Private Data in your Hadoop Clusters with ORC Column Encryption
Less05 storage
Oracle GoldenGate 18c - REST API Examples
Mongodb backup
7가지 동시성 모델 - 3장. 함수형 프로그래밍

What's hot (20)

PPTX
Oracle Data Warehouse
PDF
Best practice-high availability-solution-geo-distributed-final
PPTX
Basics of MongoDB
PPTX
Airflow and supervisor
ODP
An Introduction to Apache Hadoop Yarn
PDF
The evolution of Netflix's S3 data warehouse (Strata NY 2018)
PPTX
Apache Kafka Architectures and Fundamentals
PDF
Radical Speed for SQL Queries on Databricks: Photon Under the Hood
PDF
FDMEE script examples
PDF
DataPower Security Hardening
PDF
Oracle 11g step by step installation on windows
PDF
Using Modular Topologies in Kafka Streams to scale ksqlDB’s persistent querie...
PDF
A Technical Introduction to WiredTiger
PPTX
Extreme replication at IOUG Collaborate 15
PPTX
MongoDB Memory Management Demystified
PPT
Assembler Language Tutorial for Mainframe Programmers
PDF
MariaDB Server Performance Tuning & Optimization
PPTX
Http caching basics
Oracle Data Warehouse
Best practice-high availability-solution-geo-distributed-final
Basics of MongoDB
Airflow and supervisor
An Introduction to Apache Hadoop Yarn
The evolution of Netflix's S3 data warehouse (Strata NY 2018)
Apache Kafka Architectures and Fundamentals
Radical Speed for SQL Queries on Databricks: Photon Under the Hood
FDMEE script examples
DataPower Security Hardening
Oracle 11g step by step installation on windows
Using Modular Topologies in Kafka Streams to scale ksqlDB’s persistent querie...
A Technical Introduction to WiredTiger
Extreme replication at IOUG Collaborate 15
MongoDB Memory Management Demystified
Assembler Language Tutorial for Mainframe Programmers
MariaDB Server Performance Tuning & Optimization
Http caching basics
Ad

Similar to Mule with stored procedure (20)

PPTX
Mule with stored procedure
PPTX
Stored procedure in Mule
PPTX
Mule stored procedure
PPTX
Mule with stored procedure
PPTX
Sql storeprocedure
PPTX
Stored procedure in mule
PPTX
Mule with stored procedure
PPTX
Advance Sql Server Store procedure Presentation
PDF
EnCase Enterprise Basic File Collection
PPTX
STORED-PROCEDURE.pptxjsjjdjdjcjcjdkksksksk
PPT
Intro to tsql
PPT
Intro to tsql unit 14
PDF
Test Driven Development with Sql Server
PDF
BW Adjusting settings and monitoring data loads
PDF
A data driven etl test framework sqlsat madison
PPTX
Spring boot for buidling microservices
PDF
StorageQuery: federated querying on object stores, powered by Alluxio and Presto
PPTX
OWASP OTG-configuration (OWASP Thailand chapter november 2015)
PPTX
Setting Up Sumo Logic - Apr 2017
Mule with stored procedure
Stored procedure in Mule
Mule stored procedure
Mule with stored procedure
Sql storeprocedure
Stored procedure in mule
Mule with stored procedure
Advance Sql Server Store procedure Presentation
EnCase Enterprise Basic File Collection
STORED-PROCEDURE.pptxjsjjdjdjcjcjdkksksksk
Intro to tsql
Intro to tsql unit 14
Test Driven Development with Sql Server
BW Adjusting settings and monitoring data loads
A data driven etl test framework sqlsat madison
Spring boot for buidling microservices
StorageQuery: federated querying on object stores, powered by Alluxio and Presto
OWASP OTG-configuration (OWASP Thailand chapter november 2015)
Setting Up Sumo Logic - Apr 2017
Ad

More from Anirban Sen Chowdhary (20)

PPTX
Change the game with Game changer
PPTX
Ring central desktop app overview
PPTX
Overview in ringcentral digital line
PPTX
Some basics with ring central
PPTX
Ring central and python
PPTX
RingCentral application development overview
PPTX
Cloze connect ringcentral
PPTX
Overview on ring central errors part 4
PPTX
Setting up your ring central sandbox in steps
PPTX
Overview on ring central errors: part 2
PPTX
Overview on ring central errors
PPTX
Call recording overview ring central
PPTX
Ring central engaging with amazon alexa
PPTX
How ring central sdk changing the game
PPTX
When ring central connect salesforce
PPTX
Mule 4 connecting ring central
PPTX
Ring central sdk
PPTX
Ring central with okta
PPTX
Ring central connecting salesforce overview
PPTX
Ring central call logs overview (part 2)
Change the game with Game changer
Ring central desktop app overview
Overview in ringcentral digital line
Some basics with ring central
Ring central and python
RingCentral application development overview
Cloze connect ringcentral
Overview on ring central errors part 4
Setting up your ring central sandbox in steps
Overview on ring central errors: part 2
Overview on ring central errors
Call recording overview ring central
Ring central engaging with amazon alexa
How ring central sdk changing the game
When ring central connect salesforce
Mule 4 connecting ring central
Ring central sdk
Ring central with okta
Ring central connecting salesforce overview
Ring central call logs overview (part 2)

Recently uploaded (20)

PDF
Machine learning based COVID-19 study performance prediction
PPTX
Spectroscopy.pptx food analysis technology
PDF
Encapsulation theory and applications.pdf
PPTX
Big Data Technologies - Introduction.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Cloud computing and distributed systems.
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPT
Teaching material agriculture food technology
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
KodekX | Application Modernization Development
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Approach and Philosophy of On baking technology
Machine learning based COVID-19 study performance prediction
Spectroscopy.pptx food analysis technology
Encapsulation theory and applications.pdf
Big Data Technologies - Introduction.pptx
MYSQL Presentation for SQL database connectivity
Empathic Computing: Creating Shared Understanding
Programs and apps: productivity, graphics, security and other tools
Understanding_Digital_Forensics_Presentation.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Reach Out and Touch Someone: Haptics and Empathic Computing
Encapsulation_ Review paper, used for researhc scholars
Network Security Unit 5.pdf for BCA BBA.
Cloud computing and distributed systems.
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Teaching material agriculture food technology
Agricultural_Statistics_at_a_Glance_2022_0.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
KodekX | Application Modernization Development
Mobile App Security Testing_ A Comprehensive Guide.pdf
Approach and Philosophy of On baking technology

Mule with stored procedure

  • 1. By Anirban Sen Chowdhary
  • 2. Before we start let’s look what actually a stored procedure is. Stored procedure :- A stored procedure which is also called proc, storp, sproc, StoPro,StoredProc, StoreProc, sp or SP is actually stored in the database data dictionary. Source:- Wikipidea
  • 3. The main advantages of Stored procedure are :- Maintainability It is easier to maintain scripts containing stored procedure Testing It can be tested independent of the application Isolation of Business Rules Having Stored Procedures in one location means that business rules are separated from disparate code files in the application Speed / Optimization Stored procedures can be cached on the server Execution plans for the process are easily reviewable without having to run the application Security It limit direct access to tables via defined roles in the database and also provide an "interface" to the underlying data structure so that all implementation and even the data itself is shielded.
  • 4. How are Stored procedure called :- Through CALL procedure(...) or EXECUTE procedure(...)
  • 5. So, Do Mule Database component supports Stored procedure and how can we run a Stored procedure from Mule Database component ????
  • 6. Yes, Mule Database component supports executing Stored procedure
  • 7. So let us create a Stored Procedure in our database:, I used SQL server in my case-
  • 8. You can see the how our Stored procedure is created. Let our Stored procedure name be testStoredProccedure , and this Stored procedure will retrieve all the data from Database:-
  • 9. Now we click execute button as below, our testStoredProccedure is created :-
  • 10. So, our Mule flow will be following :- This Mule flow will retrieve all the data from Database using the Stored procedure
  • 11. Our Mule config will be following :- You can see the database component is calling the Stored procedure testStoredProccedure
  • 12. Now, lets hit the url http://localhost:8081 and test our application:- If you now check the console you will find the Stored procedure is executed and data are retrieved from Database
  • 13. That’s it … Now you can try this example by your own and can execute your Stored procedure .. Hope you enjoyed this little trick … Happy coding and share your knowledge everywhere 