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 (17)

PPTX
Mule esb using file to string and logger component
PPTX
Mule esb file to-string flow
PPTX
File tostring conversion
PPTX
Example esb flow
PPTX
Input and output flow using file and logger component
PPTX
Mule debugging logging_in_mule
PPTX
Symple io flow
PPTX
Mule custom logging
PPTX
Mule debugging logging_configuration_in_mule
PPTX
Logging configuration in mule
PPTX
My mule esb first http flow
PPTX
Esb first http flow
PPTX
PPTX
Picking log4j2 for mule
PPTX
Simple interact between http and java components
PPTX
How to use file component
PPTX
Mule- File component example
Mule esb using file to string and logger component
Mule esb file to-string flow
File tostring conversion
Example esb flow
Input and output flow using file and logger component
Mule debugging logging_in_mule
Symple io flow
Mule custom logging
Mule debugging logging_configuration_in_mule
Logging configuration in mule
My mule esb first http flow
Esb first http flow
Picking log4j2 for mule
Simple interact between http and java components
How to use file component
Mule- File component example

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
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Newfamily of error-correcting codes based on genetic algorithms
PDF
Advanced Soft Computing BINUS July 2025.pdf
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
cuic standard and advanced reporting.pdf
PDF
Smarter Business Operations Powered by IoT Remote Monitoring
PDF
KodekX | Application Modernization Development
PDF
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
PDF
DevOps & Developer Experience Summer BBQ
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
PDF
Advanced IT Governance
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Chapter 2 Digital Image Fundamentals.pdf
PPTX
Cloud computing and distributed systems.
PDF
Event Presentation Google Cloud Next Extended 2025
PDF
Sensors and Actuators in IoT Systems using pdf
PDF
REPORT: Heating appliances market in Poland 2024
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Newfamily of error-correcting codes based on genetic algorithms
Advanced Soft Computing BINUS July 2025.pdf
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
cuic standard and advanced reporting.pdf
Smarter Business Operations Powered by IoT Remote Monitoring
KodekX | Application Modernization Development
HCSP-Presales-Campus Network Planning and Design V1.0 Training Material-Witho...
DevOps & Developer Experience Summer BBQ
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
NewMind AI Weekly Chronicles - August'25 Week I
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Advanced IT Governance
20250228 LYD VKU AI Blended-Learning.pptx
Chapter 2 Digital Image Fundamentals.pdf
Cloud computing and distributed systems.
Event Presentation Google Cloud Next Extended 2025
Sensors and Actuators in IoT Systems using pdf
REPORT: Heating appliances market in Poland 2024

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!