Mule2.2之File transport

来源:百度文库 编辑:神马文学网 时间:2024/04/28 14:27:23
Mule2.2中的文件传输器可以对文件进行灵活的处理,其功能非常完善,
File Transport提供一系列可配置的属性,来提高它的实用性。
属性
类型
目标
描述
writeToDirectory
String
connector, outbound endpoin
文件输出的目录
readFromDirectory
String
connector, inbound endpoin
文件输入的目录
autoDelete
boolean
connector, inbound endpoint
文件传输之后是否删除源文件目录文件
outputAppend
boolean
connector, outboun endpoint
pollingFrequency
long
connector, inbound endpoint
每个多长时间传输(以毫秒为单位)
moveToDirectory
String
connector, inbound endpoint
moveToPattern
String
connector, inbound endpoint
传输文件名模式
outputPattern
String
connector, outbound endpoint
输出文件名模式
streaming
boolean
connector
是否把文件做为流处理
File Transport 实例:就是将项目中某个路径下的文件读取到另外一个文件夹中:

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:stdio="http://www.mulesource.org/schema/mule/stdio/2.2"
xmlns:file="http://www.mulesource.org/schema/mule/file/2.2"
xmlns:smtp="http://www.mulesource.org/schema/mule/smtp/2.2"
xsi:schemaLocation="
http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.mulesource.org/schema/mule/core/2.2http://www.mulesource.org/schema/mule/core/2.2/mule.xsd
http://www.mulesource.org/schema/mule/stdio/2.2http://www.mulesource.org/schema/mule/stdio/2.2/mule-stdio.xsd
http://www.mulesource.org/schema/mule/file/2.2http://www.mulesource.org/schema/mule/file/2.2/mule-file.xsd
http://www.mulesource.org/schema/mule/smtp/2.2http://www.mulesource.org/schema/mule/smtp/2.2/mule-smtp.xsd">
pollingFrequency="1000" autoDelete="false">











>






对于mule的file Transport 可以参考mule的用户手册。