SlideShare a Scribd company logo
Using File to string and
logger component
Open Anypoint Studio
Create a File  New  Mule Project
Click «Finish»
Expand the «myfirstproject» on package explorer
Double click on myfirstproject.xml
Once file is open, show Message Flow
From Mule Palette view, search for ‘File’ ,‘File To String’ ,‘Logger’ and select the first one.
Drag and Drop HTTP then Java component into Message Flow view.
Now we have to configure the File component for our HTTP flow.
Double click on it and set a path in a local folder then create a txt file outside the folder.
Click OK and SAVE
Configure the Logger component to print out the flow message about the file we are transferring (show on Console).
File-To-String element configures a transformer that reads the content of java.io.File into a java.lang.String.
Actually we don’t have to give it a custom configuration.
Click on SAVE at top-left of screen
Now we can start our Mule server
Right Click on project Run As 
Mule Application
On the Console view below server
is going to start.
At the end you will see the status
DEPLOYED.
This means that server is up and
running
Now we can see the result:
drop the txt file we created into
the folder and look at the console
message.
The flow works!

More Related Content

PPTX
Example esb file-to-string flow
PPTX
Mule esb lesson 3
PPTX
Sending mail in mule
PPTX
Input and output flow using http and java component
PPTX
Mule hppt java
PPTX
Mule esb using file to string and logger component
PPTX
Converting with custom transformer
PPTX
Mule esb object_to_jackson_json
Example esb file-to-string flow
Mule esb lesson 3
Sending mail in mule
Input and output flow using http and java component
Mule hppt java
Mule esb using file to string and logger component
Converting with custom transformer
Mule esb object_to_jackson_json

What's hot (15)

PPTX
Mule esb How to use Jackson in Object to Json converter
PPTX
Setting filedynamically
PDF
Managing system remotely
PPTX
Mule esb db_1
PPTX
Json to json transformation in mule
PPTX
Mule esb How to use Jackson in Json to Object converter
PPTX
Mule esb How to convert from Object to Json in 5 minutes
DOCX
Ejercicios vb primer parcial
PPTX
Mule esb - How to convert from Json to Object in 5 minutes
PPTX
Mule io flow
PPTX
Example esb flow
PPT
Python session.11 By Shanmugam
PPTX
My mule esb flow
ODP
Creating Queue Manager and Queue's in IBM WebSphere Mq
PPTX
Parameters as a part of body
Mule esb How to use Jackson in Object to Json converter
Setting filedynamically
Managing system remotely
Mule esb db_1
Json to json transformation in mule
Mule esb How to use Jackson in Json to Object converter
Mule esb How to convert from Object to Json in 5 minutes
Ejercicios vb primer parcial
Mule esb - How to convert from Json to Object in 5 minutes
Mule io flow
Example esb flow
Python session.11 By Shanmugam
My mule esb flow
Creating Queue Manager and Queue's in IBM WebSphere Mq
Parameters as a part of body
Ad

Viewers also liked (18)

PPTX
Mule esb httpflow
PPTX
Mule
 
PPTX
Mule Scatter-Gather component
PPTX
Creating custom aggregation strategy
PPTX
Mule esb lesson 1
PPTX
Using scatter gather
PPTX
Scatter gather
PPTX
MuleSoft ESB scatter-gather and base64
PPTX
Scatter-Gather
PPTX
How to create an api in mule
PPTX
mule custom aggregator
PPTX
Scatter gather component - mule
PPTX
Mule soft basic example
PPTX
Multi database access
PPTX
The routing message processor scatter gather
PPTX
Mulesoft intergrate for android app
PPTX
Scatter gather flow in mule
DOCX
Enterprise Integration Pattern - Mule Soft Scatter gather
Mule esb httpflow
Mule
 
Mule Scatter-Gather component
Creating custom aggregation strategy
Mule esb lesson 1
Using scatter gather
Scatter gather
MuleSoft ESB scatter-gather and base64
Scatter-Gather
How to create an api in mule
mule custom aggregator
Scatter gather component - mule
Mule soft basic example
Multi database access
The routing message processor scatter gather
Mulesoft intergrate for android app
Scatter gather flow in mule
Enterprise Integration Pattern - Mule Soft Scatter gather
Ad

Similar to Input and output flow using file to string and logger component (20)

PPTX
Mule esb using file to string and logger component
PPTX
Input and output flow using file and logger component
PPTX
Mule esb file to-string flow
PPTX
Simple interact between http and java components
PPTX
File tostring conversion
PPTX
Example esb flow
PPTX
Payload and logger
PPTX
Utilize Flex And Java Servlet To Implement File Upload
PPTX
My mule esb first http flow
PPTX
Esb first http flow
PPTX
Send email attachment using smtp in mule esb
PPTX
Send email attachment using smtp in mule esb
PPTX
Send email attachment using smtp in mule esb
PPTX
Send email attachment using smtp in mule esb
PPTX
Send email attachment using smtp in mule esb
PPTX
Send email attachment using smtp in mule esb
PPTX
Send email attachment using smtp in mule esb
PPTX
Symple io flow
PPTX
Email using mule
PDF
Java Servlets Part 2
Mule esb using file to string and logger component
Input and output flow using file and logger component
Mule esb file to-string flow
Simple interact between http and java components
File tostring conversion
Example esb flow
Payload and logger
Utilize Flex And Java Servlet To Implement File Upload
My mule esb first http flow
Esb first http flow
Send email attachment using smtp in mule esb
Send email attachment using smtp in mule esb
Send email attachment using smtp in mule esb
Send email attachment using smtp in mule esb
Send email attachment using smtp in mule esb
Send email attachment using smtp in mule esb
Send email attachment using smtp in mule esb
Symple io flow
Email using mule
Java Servlets Part 2

More from Son Nguyen (20)

PPTX
Wsdl connector introduction
PPTX
Android intergrate with mule
PPTX
Mule flow overview
PPTX
Mule flow and filter
PPTX
Handle exceptions in mule
PPT
Spring security integrate with mule
PPTX
Message processor in mule
PPTX
Expression language in mule
PPTX
Mule with data weave
PPTX
Using spring scheduler mule
PPTX
Composite source in bound and out-bound
PPT
Batch job processing
PPTX
Using message enricher
PPT
Finance connectors with mule
PPT
Google drive connection
PPTX
Using properties in mule
PPT
Mule integrate with microsoft
PPTX
Jms queue
PPT
Anypoint connectors
PPTX
Mule esb basic introduction
Wsdl connector introduction
Android intergrate with mule
Mule flow overview
Mule flow and filter
Handle exceptions in mule
Spring security integrate with mule
Message processor in mule
Expression language in mule
Mule with data weave
Using spring scheduler mule
Composite source in bound and out-bound
Batch job processing
Using message enricher
Finance connectors with mule
Google drive connection
Using properties in mule
Mule integrate with microsoft
Jms queue
Anypoint connectors
Mule esb basic introduction

Recently uploaded (20)

PPTX
A Presentation on Artificial Intelligence
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
KodekX | Application Modernization Development
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Cloud computing and distributed systems.
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Encapsulation theory and applications.pdf
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Electronic commerce courselecture one. Pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
A Presentation on Artificial Intelligence
Network Security Unit 5.pdf for BCA BBA.
KodekX | Application Modernization Development
Review of recent advances in non-invasive hemoglobin estimation
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Cloud computing and distributed systems.
“AI and Expert System Decision Support & Business Intelligence Systems”
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Diabetes mellitus diagnosis method based random forest with bat algorithm
Encapsulation_ Review paper, used for researhc scholars
Building Integrated photovoltaic BIPV_UPV.pdf
Encapsulation theory and applications.pdf
NewMind AI Monthly Chronicles - July 2025
Digital-Transformation-Roadmap-for-Companies.pptx
Electronic commerce courselecture one. Pdf
Chapter 3 Spatial Domain Image Processing.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
The AUB Centre for AI in Media Proposal.docx
Agricultural_Statistics_at_a_Glance_2022_0.pdf

Input and output flow using file to string and logger component

  • 1. Using File to string and logger component
  • 2. Open Anypoint Studio Create a File  New  Mule Project Click «Finish»
  • 3. Expand the «myfirstproject» on package explorer Double click on myfirstproject.xml Once file is open, show Message Flow From Mule Palette view, search for ‘File’ ,‘File To String’ ,‘Logger’ and select the first one. Drag and Drop HTTP then Java component into Message Flow view.
  • 4. Now we have to configure the File component for our HTTP flow. Double click on it and set a path in a local folder then create a txt file outside the folder. Click OK and SAVE
  • 5. Configure the Logger component to print out the flow message about the file we are transferring (show on Console). File-To-String element configures a transformer that reads the content of java.io.File into a java.lang.String. Actually we don’t have to give it a custom configuration. Click on SAVE at top-left of screen
  • 6. Now we can start our Mule server Right Click on project Run As  Mule Application On the Console view below server is going to start. At the end you will see the status DEPLOYED. This means that server is up and running Now we can see the result: drop the txt file we created into the folder and look at the console message. The flow works!