Mule文件管理【DOC精选】.doc

  1. 1、本文档共3页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Mule文件管理【DOC精选】

File Transport Mule提供一种方式,将某个路径下面的文件传送到某个指定的路径下。这种传输通道就是File Transport. 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 实例: 将文件从指定的源目录拷贝到目的目录,拷贝完之后删除源目录中的文件: ?xml version=1.0 encoding=UTF-8? mulexmlns=/schema/mule/core/2.2 xmlns:xsi=/2001/XMLSchema-instance xmlns:spring=/schema/beans xmlns:stdio=/schema/mule/stdio/2.2 xmlns:file=/schema/mule/file/2.2 xsi:schemaLocation= /schema/beans /schema/beans/spring-beans-2.5.xsd /schema/mule/core/2.2 /schema/mule/core/2.2/mule.xsd /schema/mule/stdio/2.2 /schema/mule/stdio/2.2/mule-stdio.xsd /schema/mule/file/2.2 /schema/mule/file/2.2/mule-file.xsd file:connectorname=fileConnector streaming=false pollingFrequency=1000 autoDelete=false file:expression-filename-parser/ /file:connector modelname=fileMode servicename=fileService inbound file:inbound-endpointpath=/d:/test/data/snapshot/file:inbound-endpoint /inbound outbound pass-through-router file:outbound-endpointpath=/d:/test/data/archive outputPattern=#[header:originalFilename] /file:outbound-endpoint /pass-through-router /outbound /service /model /mule 指定的源目录中拷贝仅匹配通配符的文件到目的目录中 ?xml version=1.0 encoding=UTF-8? mulexmlns=/schema/mule/core/2.2 xmlns:xsi=/2001/XMLSchema-instance xmlns:spring=/schema/beans xmlns:stdio=/schema/mule/stdio/2.2 xmlns:file=/schema/mule/file/2.2 xsi:schemaLocation= /schema/beans /schema/beans/spring-beans-2.5.xsd /schema/mule/core/2.2 /schema/mule/core/2.2/mule.xsd /schema/mule/stdio/2.2 /schema/mule/st

文档评论(0)

taotao0b + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档