SlideShare a Scribd company logo
Mulesoft
File Connector
https://docs.mulesoft.com/mule-user-guide/v/3.8/file-connector
Kumar Gaurav
k10gaurav@gmail.com
Agenda
• Introduction
• Installation and configuration
• Inbound vs outbound endpoint
• Reconnection Tab
• Transformer Tab
• Demo
• Conclusion
About
The File connector allows your Mule application to exchange files with
a file system.
You can implement the File connector as an inbound endpoint (such
as, a message source), or as an outbound endpoint.
This endpoint implements a one-way exchange pattern only.
Installation and configuration
Installation:
You can install a connector in Anypoint Studio using the instructions in
Installing a Connector from Anypoint Exchange.
Configuration:
File endpoint configuration consists of two stages:
1. Place the File endpoint within the Mule flow you are developing:
o If you place the File endpoint at the beginning of the flow, it acts as an inbound endpoint
(such as, message source), triggering the flow whenever it receives an incoming file.
o If you place the File building block in the middle or at the end of the flow, it serves as an
outbound endpoint, passing files to the connected file system.
2. Configure the File endpoint by providing values for the fields on the various tabs on
the properties editor.
Inbound vs outbound endpoint
Inbound endpoint
Configuration XML Default Representation
<file:inbound-endpoint path="" responseTimeout="10000" doc:name="File"/>
Inbound vs outbound endpoint
Outbound endpoint
Configuration XML Default Representation
<file:outbound-endpoint path="" responseTimeout="10000" doc:name="File"/>
Reconnection
By default, there is no reconnection strategy implemented for you, but you may
choose to configure reconnection on a set frequency (Standard
Reconnection) or via Custom Reconnection strategy.
Transformers Tab
Demo
Step 1: Create a new flow fileconnectordemoFlow as directed below:
Continue…
Step 2: Configure file connector (FileMove) as directed
Continue…
Step 3: Add logger just after it to see the operation in log:
Message:
#['FILE_NAME- '+message.inboundProperties.originalFilename],#['FILE_SIZE- '+((message.inboundProperties.fileSize)/1024)+'KB']]
Continue…
Resulting XML config would be:
Continue…
Now, we let’s start testing by running the application
Corresponding logger message in console:
Also the files from source directory has been moved to target location. Please
verify the same.
Conclusion
So this way we have seen how file connector works as a powerful component
in files movement within local file system.
Thank you!

More Related Content

PPTX
Mule agent notifications
PPTX
Mule advanced
PPTX
File connector
ODP
Mule maven
PPTX
Connectors in mule
PPT
Mule - HTTP Listener
PPTX
Integration with Dropbox using Mule ESB
PPTX
Mule esb
Mule agent notifications
Mule advanced
File connector
Mule maven
Connectors in mule
Mule - HTTP Listener
Integration with Dropbox using Mule ESB
Mule esb

What's hot (18)

PPTX
Send email attachment using smtp in mule esb
PPTX
Mule concepts connectors
PPTX
File component in mule demo
PPTX
File connector mule
PPTX
Junit in mule demo
PPTX
Send email attachment using smtp in mule esb
PPTX
Choice component in mule
PPT
Data weave reference documentation
PPTX
SMTP MULE
PPTX
Mule rabbitmq
PPTX
Runing batch job in mule
PPTX
File component in mule
PPTX
xslt in mule
PPT
Mule 3.8
PPTX
Xslt in mule
PPTX
Mule esb transformers
PPT
Mule overview-ppt
PPTX
For each component in mule demo
Send email attachment using smtp in mule esb
Mule concepts connectors
File component in mule demo
File connector mule
Junit in mule demo
Send email attachment using smtp in mule esb
Choice component in mule
Data weave reference documentation
SMTP MULE
Mule rabbitmq
Runing batch job in mule
File component in mule
xslt in mule
Mule 3.8
Xslt in mule
Mule esb transformers
Mule overview-ppt
For each component in mule demo
Ad

Similar to Mulesoft file connector (20)

PPTX
File connector
PPTX
File Connector
PPTX
File component
PPTX
Mule file connector
PPTX
File component
 
PPTX
Mule File component
PPTX
File component
PPTX
File component in mule
PPTX
Basic example using file connector in anypoint studio
PPTX
Fpt connector
PPTX
Ftp connector
PPTX
Mule- File component example
PPTX
How to use file component
PPTX
Mule connectors-part 1
PPTX
Ftp connector
PPTX
Mule connectors-session1
PPTX
Mule ESB Components
PPTX
Setting filedynamically
PPTX
Dynamic file attribute
PPTX
Muleesbcomponents1 160625154208
File connector
File Connector
File component
Mule file connector
File component
 
Mule File component
File component
File component in mule
Basic example using file connector in anypoint studio
Fpt connector
Ftp connector
Mule- File component example
How to use file component
Mule connectors-part 1
Ftp connector
Mule connectors-session1
Mule ESB Components
Setting filedynamically
Dynamic file attribute
Muleesbcomponents1 160625154208
Ad

More from kumar gaurav (20)

PPTX
Need Of Enterprise Integration
PPTX
Mulesoft http connector
PDF
Reason to connect with Mulesoft
PPTX
Mulesoft idempotent Message Filter
PPTX
Mulesoft Using Groovy Component
PPTX
Mulesoft vm transport reference
PPTX
Mulesoft Calling Flow of Other Applications
PPTX
Mulesoft Solutions for Mobile
PPTX
Mulesoft Solutions for SOA
PPTX
Mulesoft Solutions for IoT
PPTX
Mulesoft Anypoint platform for APIs
PPTX
Oracle Managed Files Transfer- Key based authentication
PPT
Java collections concept
PPTX
Struggle that counts
PDF
Team Work
PPTX
MySQL index optimization techniques
PPTX
Security guidelines for web development
PPT
Java web services
PPT
Oracle web center suit
PPT
jQuery Beginner
Need Of Enterprise Integration
Mulesoft http connector
Reason to connect with Mulesoft
Mulesoft idempotent Message Filter
Mulesoft Using Groovy Component
Mulesoft vm transport reference
Mulesoft Calling Flow of Other Applications
Mulesoft Solutions for Mobile
Mulesoft Solutions for SOA
Mulesoft Solutions for IoT
Mulesoft Anypoint platform for APIs
Oracle Managed Files Transfer- Key based authentication
Java collections concept
Struggle that counts
Team Work
MySQL index optimization techniques
Security guidelines for web development
Java web services
Oracle web center suit
jQuery Beginner

Recently uploaded (20)

PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPT
Teaching material agriculture food technology
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Cloud computing and distributed systems.
PDF
Modernizing your data center with Dell and AMD
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
KodekX | Application Modernization Development
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
MYSQL Presentation for SQL database connectivity
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Teaching material agriculture food technology
The Rise and Fall of 3GPP – Time for a Sabbatical?
Cloud computing and distributed systems.
Modernizing your data center with Dell and AMD
Spectral efficient network and resource selection model in 5G networks
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
NewMind AI Monthly Chronicles - July 2025
GamePlan Trading System Review: Professional Trader's Honest Take
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Machine learning based COVID-19 study performance prediction
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
KodekX | Application Modernization Development
20250228 LYD VKU AI Blended-Learning.pptx
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
Unlocking AI with Model Context Protocol (MCP)
Per capita expenditure prediction using model stacking based on satellite ima...
MYSQL Presentation for SQL database connectivity
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Reach Out and Touch Someone: Haptics and Empathic Computing

Mulesoft file connector

  • 2. Agenda • Introduction • Installation and configuration • Inbound vs outbound endpoint • Reconnection Tab • Transformer Tab • Demo • Conclusion
  • 3. About The File connector allows your Mule application to exchange files with a file system. You can implement the File connector as an inbound endpoint (such as, a message source), or as an outbound endpoint. This endpoint implements a one-way exchange pattern only.
  • 4. Installation and configuration Installation: You can install a connector in Anypoint Studio using the instructions in Installing a Connector from Anypoint Exchange. Configuration: File endpoint configuration consists of two stages: 1. Place the File endpoint within the Mule flow you are developing: o If you place the File endpoint at the beginning of the flow, it acts as an inbound endpoint (such as, message source), triggering the flow whenever it receives an incoming file. o If you place the File building block in the middle or at the end of the flow, it serves as an outbound endpoint, passing files to the connected file system. 2. Configure the File endpoint by providing values for the fields on the various tabs on the properties editor.
  • 5. Inbound vs outbound endpoint Inbound endpoint Configuration XML Default Representation <file:inbound-endpoint path="" responseTimeout="10000" doc:name="File"/>
  • 6. Inbound vs outbound endpoint Outbound endpoint Configuration XML Default Representation <file:outbound-endpoint path="" responseTimeout="10000" doc:name="File"/>
  • 7. Reconnection By default, there is no reconnection strategy implemented for you, but you may choose to configure reconnection on a set frequency (Standard Reconnection) or via Custom Reconnection strategy.
  • 9. Demo Step 1: Create a new flow fileconnectordemoFlow as directed below:
  • 10. Continue… Step 2: Configure file connector (FileMove) as directed
  • 11. Continue… Step 3: Add logger just after it to see the operation in log: Message: #['FILE_NAME- '+message.inboundProperties.originalFilename],#['FILE_SIZE- '+((message.inboundProperties.fileSize)/1024)+'KB']]
  • 13. Continue… Now, we let’s start testing by running the application Corresponding logger message in console: Also the files from source directory has been moved to target location. Please verify the same.
  • 14. Conclusion So this way we have seen how file connector works as a powerful component in files movement within local file system.