Mule won't allow POLL message processor to read file using file Inbound?

核能气质少年 提交于 2019-12-02 10:12:55

I recommend you execute this operation using the quartz connector. Here's an example:

<flow name="repeatIntervalFileFlow" doc:name="repeatIntervalFileFlow">
    <quartz:inbound-endpoint responseTimeout="10000" doc:name="Quartz" jobName="test" repeatInterval="300000">
        <quartz:event-generator-job/>
    </quartz:inbound-endpoint>               
    <flow-ref name="readFileFlow" doc:name="readFileFlow"/>        
</flow>

<flow name="readFileFlow" doc:name="readFileFlow">        
    <file:inbound-endpoint path="path" connector-ref="in" doc:name="File">
        <file:filename-wildcard-filter pattern="*.txt" />
    </file:inbound-endpoint>
    <logger message="listo" level="INFO" doc:name="Logger"/>
   ...      
</flow>

I hope to help;

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!