SlideShare a Scribd company logo
Mule File Connector
Introductions
• 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
Configuration
• File endpoint configuration consists of two
stages:
– Place the File endpoint within the Mule flow you
are developing
– Configure the File endpoint by providing values for
the fields on the various tabs on the properties
editor
Inbound endpoint
Inbound endpoint
• Configuration XML Default Representation
• <file:inbound-endpoint path=""
responseTimeout="10000" doc:name="File"/>
• Properties Window Default View
Outbound endpoint
Outbound endpoint
Property Description
Display Name Defaults to the generic endpoint name.
Change the display name, which must be
alpha-numeric, to reflect the endpoint’s
specific role, such as Order Entry Endpoint
Path The target directory on the connected file
system. If File is implemented as an inbound
endpoint, this would be the location within the
connected file system of the file being
transferred into the flow. For an outbound File
endpoint, this would be the directory on the
connected file system to which the file
currently in the flow is written.
Outbound endpoint
Move to Pattern (Applies to inbound File endpoints only) .
The pattern to be used when moving a file
according to the Move to Directory
property. It can use the patterns specified
by the filename parser configured (often
through a Connector template) for this
particular File endpoint.
Move to Directory (Applies to inbound File endpoints
only.) Typically, the file being received is
simply read by the inbound endpoint and
dispatched to the next building block in the
flow. To save a copy on the Mule host
machine, specify a path in this field.
Outbound endpoint
Connector Configuration Use the dropdown list to select a
previously created connector
configuration for this endpoint. If
you have not created a connector
configuration for this type of
endpoint, you can do so from this
window by clicking Add .
Click Edit to modify a previously
created global element.
Polling Frequency (Applies to inbound File endpoints
only.) Specify how often the
endpoint should check for
incoming messages. The default
value is 1000 ms.
Outbound endpoint
File Age (Applies to inbound File endpoints
only.) Sets a minimum period a file
must wait before it is processed.
This helps ensure that long files
are received in their entirety
before processing starts.
However, Mule and the connected
file system must be on
synchronized time for this feature
to work properly.
File Name Regex Filter (Applies to inbound File endpoints
only.) Configure a filter to restrict
the files being processed.
Outbound endpoint
File Name / Pattern (Applies to outbound File
endpoint only). Specify a
filename or pattern for naming
files that are sent from the File
endpoint to the connected file
system. If not set, the File
endpoint uses the same file-
naming pattern used for
incoming files
Advanced Tab
Advanced Tab
Property Description
Address Enter the address for this
endpoint, such
as http://localhost:8081/file.
Response Timeout Specify how long (in ms) the
endpoint waits for a response
from the connected file system.
Encoding Choose from a drop-down list the
character set used for message
data. (such as UTF-8).
Advanced Tab
Disable Transport Transformer Check this box if you do not want to
use the endpoint’s default response
transport.
MIME Type Select from the dropdown list one
of the formats this endpoint
supports.
Connector Endpoint Use the dropdown list to select a
previously configured global
endpoint reference. If you have not
created a global element for this
type of endpoint, you can do so
from this window by clicking Add.
Click Edit to modify a previously
created global element.
Advanced Tab
Comparator (Applies to inbound File
endpoints only) . Specify the
comparator used to sort
incoming files, as
in org.mule.transport.file.compar
ator. If you write your own
comparator, it must implement
the java.util.Comparator interfac
e.
Reconnection Tab
Reconnection Tab
Transformers Tab
Transformers Tab
Property Description
Transformers References:
Request
Enter a list of synchronous
transformers that are applied to
the request before it is sent to
the transport.
Global Transformers
AND
Transformers to be applied
Reference the global
transformers you desire. Enter a
list of synchronous transformers
that are applied to the response
before it is returned from the
transport and order them for
your needs.
Transformers Tab
Question and answer

More Related Content

PPT
Mule overview
PPTX
File connector
PPTX
Mule esb
PDF
Understanding Cassandra, A Visual Approach
PPTX
Transformation csvtoxml
PDF
Measures of query cost
PPT
Convert EML to PST with Easiness
PPTX
Url web design
Mule overview
File connector
Mule esb
Understanding Cassandra, A Visual Approach
Transformation csvtoxml
Measures of query cost
Convert EML to PST with Easiness
Url web design

What's hot (19)

PPTX
Mule mel 2
PPTX
Mule xml to-jaxb object
PPTX
Transformation csvtoxml
DOC
Naming in Distributed System
PPT
Less18 moving data
PPT
358 33 powerpoint-slides_16-files-their-organization_chapter-16
PDF
MuleSoft Nashik Virtual Meetup#3 - Deep Dive Into DataWeave and its Module
PPTX
Mule debugging managing_stack_traces
PPTX
Mule mel 3
PPT
Data file handling
PPTX
Data pump-export-examples
PPTX
Presentation on Data Structure
PPT
Naming And Binding (Distributed computing)
PDF
Advanced database protocols
PPTX
Translation from csv to xml
PDF
Distributed Systems Naming
DOCX
PPTX
Sql server logshipping
Mule mel 2
Mule xml to-jaxb object
Transformation csvtoxml
Naming in Distributed System
Less18 moving data
358 33 powerpoint-slides_16-files-their-organization_chapter-16
MuleSoft Nashik Virtual Meetup#3 - Deep Dive Into DataWeave and its Module
Mule debugging managing_stack_traces
Mule mel 3
Data file handling
Data pump-export-examples
Presentation on Data Structure
Naming And Binding (Distributed computing)
Advanced database protocols
Translation from csv to xml
Distributed Systems Naming
Sql server logshipping
Ad

Similar to File connector (20)

PPTX
File connector mule
PPTX
Mulesoft file connector
PPTX
Connectors in mule
PPTX
File component
PPTX
File component in mule demo
PPTX
File component
 
PPTX
Mule File component
PPTX
File component
PPTX
File component in mule
PPTX
File component in mule
PPTX
Mule- File component example
PPTX
How to use file component
PPTX
Mule file connector
PPTX
Mule connectors-part 1
PPTX
Mule connectors-session1
PPTX
Dynamic file attribute
PPTX
Ftp connector
PPTX
Setting filedynamically
PPTX
Mule ESB Components
PPTX
Fpt connector
File connector mule
Mulesoft file connector
Connectors in mule
File component
File component in mule demo
File component
 
Mule File component
File component
File component in mule
File component in mule
Mule- File component example
How to use file component
Mule file connector
Mule connectors-part 1
Mule connectors-session1
Dynamic file attribute
Ftp connector
Setting filedynamically
Mule ESB Components
Fpt connector
Ad

More from Thang Loi (20)

PPT
Mule web services
PPT
Mule enterprise service bus
PPTX
Box connector
PPTX
Amazon S3 connector
PPTX
Mule flows and subflows
PPTX
Http connector
PPTX
Tcat server
PPTX
File Connector
PPTX
Mule transform
PPTX
Mule transformers
PPTX
Http connector
PPTX
Mule mongodb connector
PPTX
Mule message state
PPTX
Mule transformers
PPTX
Elements in a muleflow
PPTX
Mule maven
PPTX
Mule soap
PPT
Mule schedule
PPTX
Mule flows
PPTX
Mule concepts
Mule web services
Mule enterprise service bus
Box connector
Amazon S3 connector
Mule flows and subflows
Http connector
Tcat server
File Connector
Mule transform
Mule transformers
Http connector
Mule mongodb connector
Mule message state
Mule transformers
Elements in a muleflow
Mule maven
Mule soap
Mule schedule
Mule flows
Mule concepts

Recently uploaded (20)

PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Cloud computing and distributed systems.
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
A Presentation on Artificial Intelligence
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
cuic standard and advanced reporting.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Approach and Philosophy of On baking technology
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
KodekX | Application Modernization Development
PPT
Teaching material agriculture food technology
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Cloud computing and distributed systems.
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Review of recent advances in non-invasive hemoglobin estimation
Mobile App Security Testing_ A Comprehensive Guide.pdf
Unlocking AI with Model Context Protocol (MCP)
A Presentation on Artificial Intelligence
The Rise and Fall of 3GPP – Time for a Sabbatical?
Chapter 3 Spatial Domain Image Processing.pdf
Understanding_Digital_Forensics_Presentation.pptx
MYSQL Presentation for SQL database connectivity
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
The AUB Centre for AI in Media Proposal.docx
cuic standard and advanced reporting.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Network Security Unit 5.pdf for BCA BBA.
Approach and Philosophy of On baking technology
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
KodekX | Application Modernization Development
Teaching material agriculture food technology

File connector

  • 2. Introductions • 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
  • 3. Configuration • File endpoint configuration consists of two stages: – Place the File endpoint within the Mule flow you are developing – Configure the File endpoint by providing values for the fields on the various tabs on the properties editor
  • 5. Inbound endpoint • Configuration XML Default Representation • <file:inbound-endpoint path="" responseTimeout="10000" doc:name="File"/> • Properties Window Default View
  • 7. Outbound endpoint Property Description Display Name Defaults to the generic endpoint name. Change the display name, which must be alpha-numeric, to reflect the endpoint’s specific role, such as Order Entry Endpoint Path The target directory on the connected file system. If File is implemented as an inbound endpoint, this would be the location within the connected file system of the file being transferred into the flow. For an outbound File endpoint, this would be the directory on the connected file system to which the file currently in the flow is written.
  • 8. Outbound endpoint Move to Pattern (Applies to inbound File endpoints only) . The pattern to be used when moving a file according to the Move to Directory property. It can use the patterns specified by the filename parser configured (often through a Connector template) for this particular File endpoint. Move to Directory (Applies to inbound File endpoints only.) Typically, the file being received is simply read by the inbound endpoint and dispatched to the next building block in the flow. To save a copy on the Mule host machine, specify a path in this field.
  • 9. Outbound endpoint Connector Configuration Use the dropdown list to select a previously created connector configuration for this endpoint. If you have not created a connector configuration for this type of endpoint, you can do so from this window by clicking Add . Click Edit to modify a previously created global element. Polling Frequency (Applies to inbound File endpoints only.) Specify how often the endpoint should check for incoming messages. The default value is 1000 ms.
  • 10. Outbound endpoint File Age (Applies to inbound File endpoints only.) Sets a minimum period a file must wait before it is processed. This helps ensure that long files are received in their entirety before processing starts. However, Mule and the connected file system must be on synchronized time for this feature to work properly. File Name Regex Filter (Applies to inbound File endpoints only.) Configure a filter to restrict the files being processed.
  • 11. Outbound endpoint File Name / Pattern (Applies to outbound File endpoint only). Specify a filename or pattern for naming files that are sent from the File endpoint to the connected file system. If not set, the File endpoint uses the same file- naming pattern used for incoming files
  • 13. Advanced Tab Property Description Address Enter the address for this endpoint, such as http://localhost:8081/file. Response Timeout Specify how long (in ms) the endpoint waits for a response from the connected file system. Encoding Choose from a drop-down list the character set used for message data. (such as UTF-8).
  • 14. Advanced Tab Disable Transport Transformer Check this box if you do not want to use the endpoint’s default response transport. MIME Type Select from the dropdown list one of the formats this endpoint supports. Connector Endpoint Use the dropdown list to select a previously configured global endpoint reference. If you have not created a global element for this type of endpoint, you can do so from this window by clicking Add. Click Edit to modify a previously created global element.
  • 15. Advanced Tab Comparator (Applies to inbound File endpoints only) . Specify the comparator used to sort incoming files, as in org.mule.transport.file.compar ator. If you write your own comparator, it must implement the java.util.Comparator interfac e.
  • 19. Transformers Tab Property Description Transformers References: Request Enter a list of synchronous transformers that are applied to the request before it is sent to the transport. Global Transformers AND Transformers to be applied Reference the global transformers you desire. Enter a list of synchronous transformers that are applied to the response before it is returned from the transport and order them for your needs.