Data Mapper
 The main motto of this PPT is How to use
DataMapper Transformer in our applications.
 DataMapper takes data in a specific format
and outputs the same data in the format of
your choice.
Data Mapper
.mflow
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:jdbc-ee="http://www.mulesoft.org/schema/mule/ee/jdbc" xmlns:data-
mapper="http://www.mulesoft.org/schema/mule/ee/data-mapper" xmlns:http="http://www.mulesoft.org/schema/mule/http"
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" version="EE-3.4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xsi:schemaLocation="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/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.mulesoft.org/schema/mule/ee/jdbc http://www.mulesoft.org/schema/mule/ee/jdbc/current/mule-jdbc-ee.xsd
http://www.mulesoft.org/schema/mule/ee/data-mapper http://www.mulesoft.org/schema/mule/ee/data-mapper/current/mule-data-
mapper.xsd">
<spring:beans>
<spring:bean id="Bean1" name="Bean" class="org.enhydra.jdbc.standard.StandardDataSource">
<spring:property name="driverName" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
<spring:property name="url" value="jdbc:sqlserver://localhost:1433;databaseName=test1;user=****;password=****;"/>
</spring:bean>
</spring:beans>
<jdbc-ee:connector name="Database" dataSource-ref="Bean1" validateConnections="true" queryTimeout="-1" pollingFrequency="0"
doc:name="Database"/>
<data-mapper:config name="new_mapping_grf" transformationGraphPath="new_mapping.grf" doc:name="new_mapping_grf"/>
<flow name="DataMapper_POCFlow1" doc:name="DataMapper_POCFlow1">
<http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8065" path="datamapper" doc:name="HTTP"/>
<logger message="--entered" level="INFO" doc:name="Logger"/>
<jdbc-ee:outbound-endpoint exchange-pattern="request-response" queryKey="select" queryTimeout="-1" connector-ref="Database"
doc:name="Database">
<jdbc-ee:query key="select" value="select * from mytable"/>
</jdbc-ee:outbound-endpoint>
<data-mapper:transform config-ref="new_mapping_grf" doc:name="DataMapper"/>
<logger message="---#[payload]" level="INFO" doc:name="Logger"/>
</flow>
</mule>
 Output:
++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++
+ Started app 'DataMapper' +
++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++
INFO 2015-05-16 10:00:00,123
[[DataMapper_POC].connector.http.mule.default.receiver.02]
org.mule.api.processor.LoggerMessageProcessor: --entered
INFO 2015-05-16 10:00:00,123
[[DataMapper_POC].connector.http.mule.default.receiver.02]
org.mule.lifecycle.AbstractLifecycleManager: Initialising:
'Database.dispatcher.1295829687'. Object is: EEJdbcMessageDispatcher
INFO 2015-05-16 10:00:00,123
[[DataMapper_POC].connector.http.mule.default.receiver.02]
org.mule.lifecycle.AbstractLifecycleManager: Starting:
'Database.dispatcher.1295829687'. Object is: EEJdbcMessageDispatcher
INFO 2015-05-16
10:00:00,254[[DataMapper_POC].connector.http.mule.default.receiver.02]
org.mule.api.processor.LoggerMessageProcessor: ---[{id=1, name=a,
subj=Hindi, marks=34}, {id=2, name=b, subj=English, marks=33}, {id=3,
name=c, subj=science, marks=67}, {id=4, name=d, subj=social,
marks=89}]
 Flow of execution:
1. URL to trigger the service from browser
http://localhost:8065/datamapper
2. Database component connects to the specific
database, executes the select query, maps the
results using DataMapper and prints the result
in console
 https://docs.mulesoft.com/mule-user-
guide/v/3.7/datamapper-supplemental-
topics

More Related Content

PPTX
PPTX
Wildcard Filter
PPTX
Message properties component in Mule
PPTX
How to use message properties component
PPTX
Message properties component in mule
PPTX
How to use data mapper transformer
PPTX
Expression filter in Mule
PPTX
Collection aggregator
Wildcard Filter
Message properties component in Mule
How to use message properties component
Message properties component in mule
How to use data mapper transformer
Expression filter in Mule
Collection aggregator

What's hot (12)

PPTX
Validate json schema
PPTX
Basic example using for each component
PPTX
Defining global exception strategies
PPTX
Property place holder
PPTX
Expression filter in Mule
PPTX
PPTX
Specifying a default exception strategy
PPTX
Reference exception strategy
PPTX
Message properties component in mule demo
PPTX
Filter expression in mule demo
PPTX
How to use data mapper transformer
PPTX
How to use splitter component
Validate json schema
Basic example using for each component
Defining global exception strategies
Property place holder
Expression filter in Mule
Specifying a default exception strategy
Reference exception strategy
Message properties component in mule demo
Filter expression in mule demo
How to use data mapper transformer
How to use splitter component
Ad

Viewers also liked (20)

PPTX
How middleware fits in to an SOA centric enterprise
PDF
Application Security - Your Success Depends on it
PDF
WSO2 Guest Webinar: Designing and Developing a University API
PDF
Webinar: Incorporating New Throttling Features into Your Business
PDF
Webinar: Understanding How Your APIs are Being Traffic Controlled
PDF
Soluciones para Mejorar la Toma de Decisiones, la Analítica en Tiempo Real y ...
PDF
WSO2 Product Release Webinar: WSO2 API Manager 2.0
PDF
Detecção de Fraudes em Licitações Usando Batch Analytics com WSO2
PDF
WSO2 Guest Webinar: Securing SaaS Apps with Multi-factor Authentication with ...
PDF
Integração SAP com Plataformas 100% OpenSource
PDF
Webinar: Message Tracing and Debugging in WSO2 Enterprise Service Bus
PDF
Enhanced Developer Experience with WSO2 Enterprise Service Bus Tooling
PDF
WSO2Con USA 2017: Discover Data That Matters: Deep Dive into WSO2 Analytics
PDF
Dealing with Common Data Requirements in Your Enterprise
PDF
WSO2Con USA 2017: A Semantic and Ontology Informational Data Model
PDF
WSO2Con USA 2017: Keynote - Digital Transformation: Disruption from Within
PDF
Enterprise Integration with the WSO2 ESB
PDF
WSO2Con USA 2017: Brokerage as a Service (BaaS), Transforming Fidelity Broker...
PDF
2016 Year End Webinar - Are You Ready for Digital Transformation?
PPTX
WSO2 Product Release Webinar: WSO2 Identity Server 5.2.0
How middleware fits in to an SOA centric enterprise
Application Security - Your Success Depends on it
WSO2 Guest Webinar: Designing and Developing a University API
Webinar: Incorporating New Throttling Features into Your Business
Webinar: Understanding How Your APIs are Being Traffic Controlled
Soluciones para Mejorar la Toma de Decisiones, la Analítica en Tiempo Real y ...
WSO2 Product Release Webinar: WSO2 API Manager 2.0
Detecção de Fraudes em Licitações Usando Batch Analytics com WSO2
WSO2 Guest Webinar: Securing SaaS Apps with Multi-factor Authentication with ...
Integração SAP com Plataformas 100% OpenSource
Webinar: Message Tracing and Debugging in WSO2 Enterprise Service Bus
Enhanced Developer Experience with WSO2 Enterprise Service Bus Tooling
WSO2Con USA 2017: Discover Data That Matters: Deep Dive into WSO2 Analytics
Dealing with Common Data Requirements in Your Enterprise
WSO2Con USA 2017: A Semantic and Ontology Informational Data Model
WSO2Con USA 2017: Keynote - Digital Transformation: Disruption from Within
Enterprise Integration with the WSO2 ESB
WSO2Con USA 2017: Brokerage as a Service (BaaS), Transforming Fidelity Broker...
2016 Year End Webinar - Are You Ready for Digital Transformation?
WSO2 Product Release Webinar: WSO2 Identity Server 5.2.0
Ad

Similar to Data Mapper (20)

PPTX
Mule transformers
PPTX
Mule transformers
PPTX
For each component in mule demo
PPTX
How to use for each component
PPTX
For Each Component
PPTX
Expression Filters
PPTX
For each component in mule
PPTX
For each component in mule
PPTX
For each component
 
PPTX
For each component
PPTX
For each component
PPTX
Muleesbcomponents1 160625154208
PPTX
How to use expression filter
PPTX
How to use expression filter
PPTX
How to use expression filter
PPTX
How to use expression filter
PPTX
How to use expression filter
PPT
MuleSoft ESB Object Store
PPTX
Mule connectors-part 1
PPTX
Xml toobjectesbtransform
Mule transformers
Mule transformers
For each component in mule demo
How to use for each component
For Each Component
Expression Filters
For each component in mule
For each component in mule
For each component
 
For each component
For each component
Muleesbcomponents1 160625154208
How to use expression filter
How to use expression filter
How to use expression filter
How to use expression filter
How to use expression filter
MuleSoft ESB Object Store
Mule connectors-part 1
Xml toobjectesbtransform

More from sivachandra mandalapu (20)

PPTX
Mock component in munit
PPTX
Jms selector
PPTX
PPTX
Object store
PPTX
How to use SFTP
PPTX
How to use secure property placeholder
PPTX
Cloud hub deployment
PPTX
Securing api with_o_auth2
PPTX
Deployment options for mule applications
PPTX
Setting up organization with api access
PPTX
API gateway setup
PPTX
PPTX
Bean as Datasource
PPTX
Synchronous communication using jms back channel
PPTX
PPTX
Soap Component
PPTX
Rest Component
PPTX
Integration with dropbox using mule esb
PPTX
Integration of mule esb with microsoft azure
Mock component in munit
Jms selector
Object store
How to use SFTP
How to use secure property placeholder
Cloud hub deployment
Securing api with_o_auth2
Deployment options for mule applications
Setting up organization with api access
API gateway setup
Bean as Datasource
Synchronous communication using jms back channel
Soap Component
Rest Component
Integration with dropbox using mule esb
Integration of mule esb with microsoft azure

Recently uploaded (20)

PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PDF
Climate and Adaptation MCQs class 7 from chatgpt
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PDF
Journal of Dental Science - UDMY (2020).pdf
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PPTX
Share_Module_2_Power_conflict_and_negotiation.pptx
PPTX
Core Concepts of Personalized Learning and Virtual Learning Environments
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 1).pdf
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PDF
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
PDF
Journal of Dental Science - UDMY (2021).pdf
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PPTX
Module on health assessment of CHN. pptx
PDF
English Textual Question & Ans (12th Class).pdf
PDF
semiconductor packaging in vlsi design fab
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
Climate and Adaptation MCQs class 7 from chatgpt
Environmental Education MCQ BD2EE - Share Source.pdf
Journal of Dental Science - UDMY (2020).pdf
AI-driven educational solutions for real-life interventions in the Philippine...
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
Share_Module_2_Power_conflict_and_negotiation.pptx
Core Concepts of Personalized Learning and Virtual Learning Environments
B.Sc. DS Unit 2 Software Engineering.pptx
Unit 4 Computer Architecture Multicore Processor.pptx
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 1).pdf
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
Journal of Dental Science - UDMY (2021).pdf
FORM 1 BIOLOGY MIND MAPS and their schemes
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
Module on health assessment of CHN. pptx
English Textual Question & Ans (12th Class).pdf
semiconductor packaging in vlsi design fab

Data Mapper

  • 2.  The main motto of this PPT is How to use DataMapper Transformer in our applications.
  • 3.  DataMapper takes data in a specific format and outputs the same data in the format of your choice.
  • 5. .mflow <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:jdbc-ee="http://www.mulesoft.org/schema/mule/ee/jdbc" xmlns:data- mapper="http://www.mulesoft.org/schema/mule/ee/data-mapper" xmlns:http="http://www.mulesoft.org/schema/mule/http" 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" version="EE-3.4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance" xsi:schemaLocation="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/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd http://www.mulesoft.org/schema/mule/ee/jdbc http://www.mulesoft.org/schema/mule/ee/jdbc/current/mule-jdbc-ee.xsd http://www.mulesoft.org/schema/mule/ee/data-mapper http://www.mulesoft.org/schema/mule/ee/data-mapper/current/mule-data- mapper.xsd"> <spring:beans> <spring:bean id="Bean1" name="Bean" class="org.enhydra.jdbc.standard.StandardDataSource"> <spring:property name="driverName" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/> <spring:property name="url" value="jdbc:sqlserver://localhost:1433;databaseName=test1;user=****;password=****;"/> </spring:bean> </spring:beans> <jdbc-ee:connector name="Database" dataSource-ref="Bean1" validateConnections="true" queryTimeout="-1" pollingFrequency="0" doc:name="Database"/> <data-mapper:config name="new_mapping_grf" transformationGraphPath="new_mapping.grf" doc:name="new_mapping_grf"/> <flow name="DataMapper_POCFlow1" doc:name="DataMapper_POCFlow1"> <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8065" path="datamapper" doc:name="HTTP"/> <logger message="--entered" level="INFO" doc:name="Logger"/> <jdbc-ee:outbound-endpoint exchange-pattern="request-response" queryKey="select" queryTimeout="-1" connector-ref="Database" doc:name="Database"> <jdbc-ee:query key="select" value="select * from mytable"/> </jdbc-ee:outbound-endpoint> <data-mapper:transform config-ref="new_mapping_grf" doc:name="DataMapper"/> <logger message="---#[payload]" level="INFO" doc:name="Logger"/> </flow> </mule>
  • 6.  Output: ++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++ + Started app 'DataMapper' + ++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++ INFO 2015-05-16 10:00:00,123 [[DataMapper_POC].connector.http.mule.default.receiver.02] org.mule.api.processor.LoggerMessageProcessor: --entered INFO 2015-05-16 10:00:00,123 [[DataMapper_POC].connector.http.mule.default.receiver.02] org.mule.lifecycle.AbstractLifecycleManager: Initialising: 'Database.dispatcher.1295829687'. Object is: EEJdbcMessageDispatcher INFO 2015-05-16 10:00:00,123 [[DataMapper_POC].connector.http.mule.default.receiver.02] org.mule.lifecycle.AbstractLifecycleManager: Starting: 'Database.dispatcher.1295829687'. Object is: EEJdbcMessageDispatcher INFO 2015-05-16 10:00:00,254[[DataMapper_POC].connector.http.mule.default.receiver.02] org.mule.api.processor.LoggerMessageProcessor: ---[{id=1, name=a, subj=Hindi, marks=34}, {id=2, name=b, subj=English, marks=33}, {id=3, name=c, subj=science, marks=67}, {id=4, name=d, subj=social, marks=89}]
  • 7.  Flow of execution: 1. URL to trigger the service from browser http://localhost:8065/datamapper 2. Database component connects to the specific database, executes the select query, maps the results using DataMapper and prints the result in console