SlideShare a Scribd company logo
How to use Database Component using
Stored Procedure
02-02-2016
Abstract
• The main motto of this PPT is how to use Database component using
stored procedure call in our mule applications.
Introduction
• The Database component can also use to call stored procedure call
with In and Out parameters to get the results from DB, then returns
the original message as Map having required column names as keys
and column values as values to the flow.
Example
.mflow
• <?xml version="1.0" encoding="UTF-8"?>
• <mule xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns:http="http://www.mulesoft.org/schema/mule/http"
• xmlns:db="http://www.mulesoft.org/schema/mule/db" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
• xsi:schemaLocation="http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd http://www.mulesoft.org/schema/mule/db http://www.mulesoft.org/schema/mule/db/current/mule-db.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
• http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd">
• <http:listener-config name="HTTP_procedureListener" host="localhost" port="8083" basePath="procedure" doc:name="HTTP Listener Configuration"/>
• <spring:beans>
• <spring:bean id="HoplaOracleDataSourceBean" name="HoplaOracleDataSourceBean" class="org.enhydra.jdbc.standard.StandardDataSource">
• <spring:property name="driverName" value="${ehbe.oracle.db.driverName}"/>
• <spring:property name="url" value="${ehbe.oracle.db.url}"/>
• <spring:property name="user" value="${ehbe.oracle.db.user}"/>
• <spring:property name="password" value="${ehbe.oracle.db.password}"/>
• </spring:bean>
• </spring:beans>
• <db:generic-config name="Hopla_Database_Configuration" doc:name="Generic Database Configuration" dataSource-ref="HoplaOracleDataSourceBean"/>
• <flow name="proceduretestFlow">
• <http:listener config-ref="HTTP_procedureListener" path="/" doc:name="HTTP"/>
• <db:stored-procedure config-ref="Hopla_Database_Configuration" doc:name="Database">
• <db:parameterized-query><![CDATA[call GET_CITY(:GEO_LOCATION_CODE,:STATE_NAME)]]></db:parameterized-query>
• <db:in-param name="GEO_LOCATION_CODE" type="INTEGER" value="#[message.inboundProperties.'http.query.params'.geocode]"/>
• <db:out-param name="STATE_NAME" type="VARCHAR"/>
• </db:stored-procedure>
• <logger message="State name for given GeoCode is :: :: #[payload]" level="INFO" doc:name="Logger"/>
• </flow>
• </mule>
• INFO 2016-02-10 15:45:57,385 [main] org.mule.processor.SedaStageLifecycleManager: Starting service: proceduretestFlow.stage1
• INFO 2016-02-10 15:45:57,434 [main] org.mule.module.http.internal.listener.DefaultHttpListenerConfig: Listening for requests on http://localhost:8081/Demo1
• INFO 2016-02-10 15:45:57,444 [main] org.mule.module.http.internal.listener.DefaultHttpListenerConfig: Listening for requests on http://localhost:8082/test
• INFO 2016-02-10 15:45:57,452 [main] org.mule.module.http.internal.listener.DefaultHttpListenerConfig: Listening for requests on http://localhost:8083/procedure
• INFO 2016-02-10 15:45:57,459 [main] org.mule.module.management.agent.WrapperManagerAgent: This JVM hasn't been launched by the wrapper, the agent will not run.
• INFO 2016-02-10 15:45:57,498 [main] org.mule.module.management.agent.AbstractJmxAgent: Attempting to register service with name:
• Mule.sample:type=Endpoint,service="sampleFlow1",connector=connector.VM.mule.default,name="endpoint.vm.US"
• INFO 2016-02-10 15:45:57,499 [main] org.mule.module.management.agent.AbstractJmxAgent: Registered Endpoint Service with name:
• Mule.sample:type=Endpoint,service="sampleFlow1",connector=connector.VM.mule.default,name="endpoint.vm.US"
• INFO 2016-02-10 15:45:57,501 [main] org.mule.module.management.agent.AbstractJmxAgent: Registered Connector Service with name
Mule.sample:type=Connector,name="connector.VM.mule.default.1"
• INFO 2016-02-10 15:45:57,504 [main] org.mule.DefaultMuleContext:
• **********************************************************************
• * Application: sample *
• **********************************************************************
• INFO 2016-02-10 15:45:57,504 [main] org.mule.module.launcher.MuleDeploymentService:
• ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
• + Started app 'sample' +
• ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
• INFO 2016-02-10 15:45:57,524 [main] org.mule.module.launcher.StartupSummaryDeploymentListener:
• **********************************************************************
• * - - + DOMAIN + - - * - - + STATUS + - - *
• **********************************************************************
• * default * DEPLOYED *
• *******************************************************************************************************
• * - - + APPLICATION + - - * - - + DOMAIN + - - * - - + STATUS + - - *
• *******************************************************************************************************
• * sample * default * DEPLOYED *
• *******************************************************************************************************
• Flow of execution:
1. URL to trigger the service from browser
http://localhost:8083/procedure?geocode=63573
2. Database component connects to the specific
database, executes the selected procedure by
taking and prints the result as Map.
References
• http://forums.mulesoft.com/questions/1602/execute-
mssql-stored-procedure-in-mule-ce-3-5-anypoint.html
Ad

More Related Content

What's hot (14)

Spring introduction
Spring introductionSpring introduction
Spring introduction
AnilKumar Etagowni
 
Basic example using for each component
Basic example using for each componentBasic example using for each component
Basic example using for each component
prudhvivreddy
 
Until successful component in mule
Until successful component in muleUntil successful component in mule
Until successful component in mule
javeed_mhd
 
Quartz component in mule
Quartz component in muleQuartz component in mule
Quartz component in mule
javeed_mhd
 
MuleSoft ESB Routes first-successful
MuleSoft ESB Routes first-successfulMuleSoft ESB Routes first-successful
MuleSoft ESB Routes first-successful
akashdprajapati
 
For each component in mule
For each component in muleFor each component in mule
For each component in mule
Rajkattamuri
 
Quartz component in mule demo
Quartz component in mule demoQuartz component in mule demo
Quartz component in mule demo
Sudha Ch
 
Mulesoft Using Groovy Component
Mulesoft Using Groovy ComponentMulesoft Using Groovy Component
Mulesoft Using Groovy Component
kumar gaurav
 
Simple Poll in Mule
Simple Poll in MuleSimple Poll in Mule
Simple Poll in Mule
Christian Hipolito
 
Expression filter in Mule
Expression filter in MuleExpression filter in Mule
Expression filter in Mule
Mohammed246
 
Running ms sql stored procedures in mule
Running ms sql stored procedures in muleRunning ms sql stored procedures in mule
Running ms sql stored procedures in mule
AnilKumar Etagowni
 
Configurare http mule
Configurare http muleConfigurare http mule
Configurare http mule
Antonio Pellegrino
 
Mule esb :Data Weave
Mule esb :Data WeaveMule esb :Data Weave
Mule esb :Data Weave
AnilKumar Etagowni
 
Mule Esb Data Weave
Mule Esb Data WeaveMule Esb Data Weave
Mule Esb Data Weave
Mohammed246
 
Basic example using for each component
Basic example using for each componentBasic example using for each component
Basic example using for each component
prudhvivreddy
 
Until successful component in mule
Until successful component in muleUntil successful component in mule
Until successful component in mule
javeed_mhd
 
Quartz component in mule
Quartz component in muleQuartz component in mule
Quartz component in mule
javeed_mhd
 
MuleSoft ESB Routes first-successful
MuleSoft ESB Routes first-successfulMuleSoft ESB Routes first-successful
MuleSoft ESB Routes first-successful
akashdprajapati
 
For each component in mule
For each component in muleFor each component in mule
For each component in mule
Rajkattamuri
 
Quartz component in mule demo
Quartz component in mule demoQuartz component in mule demo
Quartz component in mule demo
Sudha Ch
 
Mulesoft Using Groovy Component
Mulesoft Using Groovy ComponentMulesoft Using Groovy Component
Mulesoft Using Groovy Component
kumar gaurav
 
Expression filter in Mule
Expression filter in MuleExpression filter in Mule
Expression filter in Mule
Mohammed246
 
Running ms sql stored procedures in mule
Running ms sql stored procedures in muleRunning ms sql stored procedures in mule
Running ms sql stored procedures in mule
AnilKumar Etagowni
 
Mule Esb Data Weave
Mule Esb Data WeaveMule Esb Data Weave
Mule Esb Data Weave
Mohammed246
 

Viewers also liked (18)

How to use cache scope component
How to use cache scope componentHow to use cache scope component
How to use cache scope component
prathyusha vadla
 
Ed103format3 complete summary.docx[1]
Ed103format3 complete summary.docx[1]Ed103format3 complete summary.docx[1]
Ed103format3 complete summary.docx[1]
mark maneb
 
Claudia_Testanera_gennaio_2016
Claudia_Testanera_gennaio_2016Claudia_Testanera_gennaio_2016
Claudia_Testanera_gennaio_2016
Claudia Testanera
 
Question 5
Question 5Question 5
Question 5
Amber Barnett
 
Materiales en la informatica
Materiales en la informaticaMateriales en la informatica
Materiales en la informatica
MarioVaz Vazquez
 
Proceedings of-the-waste-safe-2015 (1)
Proceedings of-the-waste-safe-2015 (1)Proceedings of-the-waste-safe-2015 (1)
Proceedings of-the-waste-safe-2015 (1)
Mushfiqur Rahman
 
How to Make a Lavamanos-RoundBASE
How to Make a Lavamanos-RoundBASEHow to Make a Lavamanos-RoundBASE
How to Make a Lavamanos-RoundBASE
Lynn Roberts
 
Question 5
Question 5Question 5
Question 5
Amber Barnett
 
Man and van bournemouth
Man and van bournemouthMan and van bournemouth
Man and van bournemouth
A Man and Van 247
 
Question 5
Question 5Question 5
Question 5
Amber Barnett
 
Ancillary Development
Ancillary Development Ancillary Development
Ancillary Development
sophie robinson
 
Question 2
Question 2Question 2
Question 2
Amber Barnett
 
Effects
EffectsEffects
Effects
sophie robinson
 
прислівник
прислівникприслівник
прислівник
Mariya Yudina
 
Team Pique UHC Case Comp Slide Deck
Team Pique UHC Case Comp Slide DeckTeam Pique UHC Case Comp Slide Deck
Team Pique UHC Case Comp Slide Deck
Anukriti Kurria
 
Construction of digipak
Construction of digipakConstruction of digipak
Construction of digipak
sophie robinson
 
The production schedule
The production scheduleThe production schedule
The production schedule
sophie robinson
 
Foodies April16 v3
Foodies April16 v3Foodies April16 v3
Foodies April16 v3
Sahiri Loing
 
How to use cache scope component
How to use cache scope componentHow to use cache scope component
How to use cache scope component
prathyusha vadla
 
Ed103format3 complete summary.docx[1]
Ed103format3 complete summary.docx[1]Ed103format3 complete summary.docx[1]
Ed103format3 complete summary.docx[1]
mark maneb
 
Claudia_Testanera_gennaio_2016
Claudia_Testanera_gennaio_2016Claudia_Testanera_gennaio_2016
Claudia_Testanera_gennaio_2016
Claudia Testanera
 
Materiales en la informatica
Materiales en la informaticaMateriales en la informatica
Materiales en la informatica
MarioVaz Vazquez
 
Proceedings of-the-waste-safe-2015 (1)
Proceedings of-the-waste-safe-2015 (1)Proceedings of-the-waste-safe-2015 (1)
Proceedings of-the-waste-safe-2015 (1)
Mushfiqur Rahman
 
How to Make a Lavamanos-RoundBASE
How to Make a Lavamanos-RoundBASEHow to Make a Lavamanos-RoundBASE
How to Make a Lavamanos-RoundBASE
Lynn Roberts
 
прислівник
прислівникприслівник
прислівник
Mariya Yudina
 
Team Pique UHC Case Comp Slide Deck
Team Pique UHC Case Comp Slide DeckTeam Pique UHC Case Comp Slide Deck
Team Pique UHC Case Comp Slide Deck
Anukriti Kurria
 
Foodies April16 v3
Foodies April16 v3Foodies April16 v3
Foodies April16 v3
Sahiri Loing
 
Ad

Similar to How to use database component using stored procedure call (20)

Mule Choice component
Mule Choice component Mule Choice component
Mule Choice component
AbdulImrankhan7
 
Choice component
Choice component Choice component
Choice component
F K
 
Choice component in mule
Choice component in muleChoice component in mule
Choice component in mule
javeed_mhd
 
Choice component
Choice component Choice component
Choice component
Sunil Komarapu
 
How to use Request Reply scope
How to use Request Reply scopeHow to use Request Reply scope
How to use Request Reply scope
sivachandra mandalapu
 
How to use choice component
How to use choice componentHow to use choice component
How to use choice component
maheshtheapex
 
Mule-choice component
Mule-choice componentMule-choice component
Mule-choice component
DivyaSree1391
 
For Each Component
For Each ComponentFor Each Component
For Each Component
Durga Prasad Kakarla
 
For each component
For each component For each component
For each component
AbdulImrankhan7
 
For each component
For each component For each component
For each component
F K
 
For each component
For each component For each component
For each component
Sunil Komarapu
 
For each component in mule
For each component in muleFor each component in mule
For each component in mule
javeed_mhd
 
How to use for each component
How to use for each componentHow to use for each component
How to use for each component
maheshtheapex
 
Collection aggregator
Collection aggregatorCollection aggregator
Collection aggregator
sivachandra mandalapu
 
Message properties component
Message properties component Message properties component
Message properties component
Sunil Komarapu
 
Message properties component in mule
Message properties component in muleMessage properties component in mule
Message properties component in mule
javeed_mhd
 
Message properties component
Message properties componentMessage properties component
Message properties component
F K
 
How to use message properties component
How to use message properties componentHow to use message properties component
How to use message properties component
maheshtheapex
 
For each component in mule demo
For each component in mule demoFor each component in mule demo
For each component in mule demo
Sudha Ch
 
How to use poll scope
How to use poll scopeHow to use poll scope
How to use poll scope
sivachandra mandalapu
 
Choice component
Choice component Choice component
Choice component
F K
 
Choice component in mule
Choice component in muleChoice component in mule
Choice component in mule
javeed_mhd
 
How to use choice component
How to use choice componentHow to use choice component
How to use choice component
maheshtheapex
 
Mule-choice component
Mule-choice componentMule-choice component
Mule-choice component
DivyaSree1391
 
For each component
For each component For each component
For each component
F K
 
For each component in mule
For each component in muleFor each component in mule
For each component in mule
javeed_mhd
 
How to use for each component
How to use for each componentHow to use for each component
How to use for each component
maheshtheapex
 
Message properties component
Message properties component Message properties component
Message properties component
Sunil Komarapu
 
Message properties component in mule
Message properties component in muleMessage properties component in mule
Message properties component in mule
javeed_mhd
 
Message properties component
Message properties componentMessage properties component
Message properties component
F K
 
How to use message properties component
How to use message properties componentHow to use message properties component
How to use message properties component
maheshtheapex
 
For each component in mule demo
For each component in mule demoFor each component in mule demo
For each component in mule demo
Sudha Ch
 
Ad

Recently uploaded (20)

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
 
Secure Test Infrastructure: The Backbone of Trustworthy Software Development
Secure Test Infrastructure: The Backbone of Trustworthy Software DevelopmentSecure Test Infrastructure: The Backbone of Trustworthy Software Development
Secure Test Infrastructure: The Backbone of Trustworthy Software Development
Shubham Joshi
 
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
 
Adobe Lightroom Classic Crack FREE Latest link 2025
Adobe Lightroom Classic Crack FREE Latest link 2025Adobe Lightroom Classic Crack FREE Latest link 2025
Adobe Lightroom Classic Crack FREE Latest link 2025
kashifyounis067
 
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Dele Amefo
 
Meet the Agents: How AI Is Learning to Think, Plan, and Collaborate
Meet the Agents: How AI Is Learning to Think, Plan, and CollaborateMeet the Agents: How AI Is Learning to Think, Plan, and Collaborate
Meet the Agents: How AI Is Learning to Think, Plan, and Collaborate
Maxim Salnikov
 
Kubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptxKubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptx
CloudScouts
 
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
 
Maxon CINEMA 4D 2025 Crack FREE Download LINK
Maxon CINEMA 4D 2025 Crack FREE Download LINKMaxon CINEMA 4D 2025 Crack FREE Download LINK
Maxon CINEMA 4D 2025 Crack FREE Download LINK
younisnoman75
 
Download YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full ActivatedDownload YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full Activated
saniamalik72555
 
PDF Reader Pro Crack Latest Version FREE Download 2025
PDF Reader Pro Crack Latest Version FREE Download 2025PDF Reader Pro Crack Latest Version FREE Download 2025
PDF Reader Pro Crack Latest Version FREE Download 2025
mu394968
 
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
Andre Hora
 
Designing AI-Powered APIs on Azure: Best Practices& Considerations
Designing AI-Powered APIs on Azure: Best Practices& ConsiderationsDesigning AI-Powered APIs on Azure: Best Practices& Considerations
Designing AI-Powered APIs on Azure: Best Practices& Considerations
Dinusha Kumarasiri
 
How to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud PerformanceHow to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud Performance
ThousandEyes
 
Landscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature ReviewLandscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature Review
Hironori Washizaki
 
Adobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest VersionAdobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest Version
kashifyounis067
 
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
 
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
University of Hawai‘i at Mānoa
 
Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]
saniaaftab72555
 
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
 
Secure Test Infrastructure: The Backbone of Trustworthy Software Development
Secure Test Infrastructure: The Backbone of Trustworthy Software DevelopmentSecure Test Infrastructure: The Backbone of Trustworthy Software Development
Secure Test Infrastructure: The Backbone of Trustworthy Software Development
Shubham Joshi
 
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
 
Adobe Lightroom Classic Crack FREE Latest link 2025
Adobe Lightroom Classic Crack FREE Latest link 2025Adobe Lightroom Classic Crack FREE Latest link 2025
Adobe Lightroom Classic Crack FREE Latest link 2025
kashifyounis067
 
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Salesforce Data Cloud- Hyperscale data platform, built for Salesforce.
Dele Amefo
 
Meet the Agents: How AI Is Learning to Think, Plan, and Collaborate
Meet the Agents: How AI Is Learning to Think, Plan, and CollaborateMeet the Agents: How AI Is Learning to Think, Plan, and Collaborate
Meet the Agents: How AI Is Learning to Think, Plan, and Collaborate
Maxim Salnikov
 
Kubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptxKubernetes_101_Zero_to_Platform_Engineer.pptx
Kubernetes_101_Zero_to_Platform_Engineer.pptx
CloudScouts
 
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
 
Maxon CINEMA 4D 2025 Crack FREE Download LINK
Maxon CINEMA 4D 2025 Crack FREE Download LINKMaxon CINEMA 4D 2025 Crack FREE Download LINK
Maxon CINEMA 4D 2025 Crack FREE Download LINK
younisnoman75
 
Download YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full ActivatedDownload YouTube By Click 2025 Free Full Activated
Download YouTube By Click 2025 Free Full Activated
saniamalik72555
 
PDF Reader Pro Crack Latest Version FREE Download 2025
PDF Reader Pro Crack Latest Version FREE Download 2025PDF Reader Pro Crack Latest Version FREE Download 2025
PDF Reader Pro Crack Latest Version FREE Download 2025
mu394968
 
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
What Do Contribution Guidelines Say About Software Testing? (MSR 2025)
Andre Hora
 
Designing AI-Powered APIs on Azure: Best Practices& Considerations
Designing AI-Powered APIs on Azure: Best Practices& ConsiderationsDesigning AI-Powered APIs on Azure: Best Practices& Considerations
Designing AI-Powered APIs on Azure: Best Practices& Considerations
Dinusha Kumarasiri
 
How to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud PerformanceHow to Optimize Your AWS Environment for Improved Cloud Performance
How to Optimize Your AWS Environment for Improved Cloud Performance
ThousandEyes
 
Landscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature ReviewLandscape of Requirements Engineering for/by AI through Literature Review
Landscape of Requirements Engineering for/by AI through Literature Review
Hironori Washizaki
 
Adobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest VersionAdobe Illustrator Crack FREE Download 2025 Latest Version
Adobe Illustrator Crack FREE Download 2025 Latest Version
kashifyounis067
 
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
 
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...Exploring Code Comprehension  in Scientific Programming:  Preliminary Insight...
Exploring Code Comprehension in Scientific Programming: Preliminary Insight...
University of Hawai‘i at Mānoa
 
Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]Get & Download Wondershare Filmora Crack Latest [2025]
Get & Download Wondershare Filmora Crack Latest [2025]
saniaaftab72555
 
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
 

How to use database component using stored procedure call

  • 1. How to use Database Component using Stored Procedure 02-02-2016
  • 2. Abstract • The main motto of this PPT is how to use Database component using stored procedure call in our mule applications.
  • 3. Introduction • The Database component can also use to call stored procedure call with In and Out parameters to get the results from DB, then returns the original message as Map having required column names as keys and column values as values to the flow.
  • 5. .mflow • <?xml version="1.0" encoding="UTF-8"?> • <mule xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns:http="http://www.mulesoft.org/schema/mule/http" • xmlns:db="http://www.mulesoft.org/schema/mule/db" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" • xsi:schemaLocation="http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd http://www.mulesoft.org/schema/mule/db http://www.mulesoft.org/schema/mule/db/current/mule-db.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd • http://www.mulesoft.org/schema/mule/ee/tracking http://www.mulesoft.org/schema/mule/ee/tracking/current/mule-tracking-ee.xsd"> • <http:listener-config name="HTTP_procedureListener" host="localhost" port="8083" basePath="procedure" doc:name="HTTP Listener Configuration"/> • <spring:beans> • <spring:bean id="HoplaOracleDataSourceBean" name="HoplaOracleDataSourceBean" class="org.enhydra.jdbc.standard.StandardDataSource"> • <spring:property name="driverName" value="${ehbe.oracle.db.driverName}"/> • <spring:property name="url" value="${ehbe.oracle.db.url}"/> • <spring:property name="user" value="${ehbe.oracle.db.user}"/> • <spring:property name="password" value="${ehbe.oracle.db.password}"/> • </spring:bean> • </spring:beans> • <db:generic-config name="Hopla_Database_Configuration" doc:name="Generic Database Configuration" dataSource-ref="HoplaOracleDataSourceBean"/> • <flow name="proceduretestFlow"> • <http:listener config-ref="HTTP_procedureListener" path="/" doc:name="HTTP"/> • <db:stored-procedure config-ref="Hopla_Database_Configuration" doc:name="Database"> • <db:parameterized-query><![CDATA[call GET_CITY(:GEO_LOCATION_CODE,:STATE_NAME)]]></db:parameterized-query> • <db:in-param name="GEO_LOCATION_CODE" type="INTEGER" value="#[message.inboundProperties.'http.query.params'.geocode]"/> • <db:out-param name="STATE_NAME" type="VARCHAR"/> • </db:stored-procedure> • <logger message="State name for given GeoCode is :: :: #[payload]" level="INFO" doc:name="Logger"/> • </flow> • </mule>
  • 6. • INFO 2016-02-10 15:45:57,385 [main] org.mule.processor.SedaStageLifecycleManager: Starting service: proceduretestFlow.stage1 • INFO 2016-02-10 15:45:57,434 [main] org.mule.module.http.internal.listener.DefaultHttpListenerConfig: Listening for requests on http://localhost:8081/Demo1 • INFO 2016-02-10 15:45:57,444 [main] org.mule.module.http.internal.listener.DefaultHttpListenerConfig: Listening for requests on http://localhost:8082/test • INFO 2016-02-10 15:45:57,452 [main] org.mule.module.http.internal.listener.DefaultHttpListenerConfig: Listening for requests on http://localhost:8083/procedure • INFO 2016-02-10 15:45:57,459 [main] org.mule.module.management.agent.WrapperManagerAgent: This JVM hasn't been launched by the wrapper, the agent will not run. • INFO 2016-02-10 15:45:57,498 [main] org.mule.module.management.agent.AbstractJmxAgent: Attempting to register service with name: • Mule.sample:type=Endpoint,service="sampleFlow1",connector=connector.VM.mule.default,name="endpoint.vm.US" • INFO 2016-02-10 15:45:57,499 [main] org.mule.module.management.agent.AbstractJmxAgent: Registered Endpoint Service with name: • Mule.sample:type=Endpoint,service="sampleFlow1",connector=connector.VM.mule.default,name="endpoint.vm.US" • INFO 2016-02-10 15:45:57,501 [main] org.mule.module.management.agent.AbstractJmxAgent: Registered Connector Service with name Mule.sample:type=Connector,name="connector.VM.mule.default.1" • INFO 2016-02-10 15:45:57,504 [main] org.mule.DefaultMuleContext: • ********************************************************************** • * Application: sample * • ********************************************************************** • INFO 2016-02-10 15:45:57,504 [main] org.mule.module.launcher.MuleDeploymentService: • ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ • + Started app 'sample' + • ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ • INFO 2016-02-10 15:45:57,524 [main] org.mule.module.launcher.StartupSummaryDeploymentListener: • ********************************************************************** • * - - + DOMAIN + - - * - - + STATUS + - - * • ********************************************************************** • * default * DEPLOYED * • ******************************************************************************************************* • * - - + APPLICATION + - - * - - + DOMAIN + - - * - - + STATUS + - - * • ******************************************************************************************************* • * sample * default * DEPLOYED * • *******************************************************************************************************
  • 7. • Flow of execution: 1. URL to trigger the service from browser http://localhost:8083/procedure?geocode=63573 2. Database component connects to the specific database, executes the selected procedure by taking and prints the result as Map.