SlideShare a Scribd company logo
Mule ESBMY FIRST HTTP FLOW: 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!
Enjoy with
Mule!

More Related Content

PPTX
Mule esb lesson 3
PPTX
Input and output flow using file to string and logger component
PPTX
Sending mail in mule
PPTX
Input and output flow using file and logger component
PPTX
Simple interact between http and java components
PPTX
Input and output flow using http and java component
PPTX
Mule esb - How to use Idempotent Filters in 5 minutes
PPTX
Mule hppt java
Mule esb lesson 3
Input and output flow using file to string and logger component
Sending mail in mule
Input and output flow using file and logger component
Simple interact between http and java components
Input and output flow using http and java component
Mule esb - How to use Idempotent Filters in 5 minutes
Mule hppt java

What's hot (16)

PPTX
Mule esb using file to string and logger component
PPTX
Converting with custom transformer
PPTX
Mule esb How to convert from CSV to Json in 5 minutes
PPTX
Mule message enricher
PPTX
Simple groovy example in mule
PPTX
Setting filedynamically
PPTX
Mule esb db_1
PPTX
Process file one after another
PPTX
Mule esb file to-string flow
PPTX
Json to json transformation in mule
PPTX
Using message enricher
PPTX
Encrypting/Decrypting mule
PPTX
Groovy in Mule
PPTX
บทที่3
PPTX
Groovy example in mule
PPTX
Cache for community edition
Mule esb using file to string and logger component
Converting with custom transformer
Mule esb How to convert from CSV to Json in 5 minutes
Mule message enricher
Simple groovy example in mule
Setting filedynamically
Mule esb db_1
Process file one after another
Mule esb file to-string flow
Json to json transformation in mule
Using message enricher
Encrypting/Decrypting mule
Groovy in Mule
บทที่3
Groovy example in mule
Cache for community edition
Ad

Viewers also liked (15)

PDF
Km1639 09-11
DOC
13 simulacro-bc3a1sica-primaria-con-respuestas
PPTX
Precentacion 4 periodo
PPTX
Transformation jsontoxmlesb
PPTX
Erstinformation Franchisepartner 20160315
KEY
science homework
PDF
Transcript_Kaiserslautern
PDF
PI Marathon Mannheim.pdf
PPSX
Fabio Capello - Xmas 2010
PPT
Front Cover Analysis
PPTX
Prince akhal
PPTX
Space travel 1 day brief
Km1639 09-11
13 simulacro-bc3a1sica-primaria-con-respuestas
Precentacion 4 periodo
Transformation jsontoxmlesb
Erstinformation Franchisepartner 20160315
science homework
Transcript_Kaiserslautern
PI Marathon Mannheim.pdf
Fabio Capello - Xmas 2010
Front Cover Analysis
Prince akhal
Space travel 1 day brief
Ad

Similar to Example esb file-to-string flow (20)

PPTX
Input and output flow with logger component
PPTX
Mule esb using file to string and logger component
PPTX
Mule io flow
PPTX
File tostring conversion
PPTX
Example esb flow
PPTX
Example esb flow
PPTX
My mule esb flow
PPTX
Mule esb lesson 1
PPTX
Payload and logger
PPTX
Mule esb httpflow
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
Utilize Flex And Java Servlet To Implement File Upload
PPTX
Symple io flow
PPTX
Send email attachment using smtp in mule esb
PPTX
My mule esb first http flow
PPTX
Send email attachment using smtp in mule esb
PPTX
Send email attachment using smtp in mule esb
Input and output flow with logger component
Mule esb using file to string and logger component
Mule io flow
File tostring conversion
Example esb flow
Example esb flow
My mule esb flow
Mule esb lesson 1
Payload and logger
Mule esb httpflow
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
Utilize Flex And Java Servlet To Implement File Upload
Symple io flow
Send email attachment using smtp in mule esb
My mule esb first http flow
Send email attachment using smtp in mule esb
Send email attachment using smtp in mule esb

More from Antonio Pellegrino (11)

PPTX
Esb first http flow
PPTX
Http component
PPTX
Configurare https mule
PPTX
Configurare http mule
PPTX
Rest fullservices
PPTX
Transformation csvtoxml
PPTX
Transformation xmltoobjectesb
PPTX
Transformation jsontojsonesb
PPTX
Create web services jax - ws3
PPTX
Create web services jax - ws2
PPTX
Create web services jax - ws1
Esb first http flow
Http component
Configurare https mule
Configurare http mule
Rest fullservices
Transformation csvtoxml
Transformation xmltoobjectesb
Transformation jsontojsonesb
Create web services jax - ws3
Create web services jax - ws2
Create web services jax - ws1

Recently uploaded (20)

PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPT
Teaching material agriculture food technology
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Empathic Computing: Creating Shared Understanding
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
“AI and Expert System Decision Support & Business Intelligence Systems”
Reach Out and Touch Someone: Haptics and Empathic Computing
Teaching material agriculture food technology
Unlocking AI with Model Context Protocol (MCP)
Digital-Transformation-Roadmap-for-Companies.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Empathic Computing: Creating Shared Understanding
Chapter 3 Spatial Domain Image Processing.pdf
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Spectral efficient network and resource selection model in 5G networks
CIFDAQ's Market Insight: SEC Turns Pro Crypto
The Rise and Fall of 3GPP – Time for a Sabbatical?
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Advanced methodologies resolving dimensionality complications for autism neur...
20250228 LYD VKU AI Blended-Learning.pptx
Network Security Unit 5.pdf for BCA BBA.
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Encapsulation_ Review paper, used for researhc scholars
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm

Example esb file-to-string flow

  • 1. Mule ESBMY FIRST HTTP FLOW: 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! Enjoy with Mule!