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

前端 未结 1 692
萌比男神i
萌比男神i 2021-01-26 07:48

I have a small query, POLL message processor not allowing to read Files from \'File Inbound\' message processor?

I need to read the file for every 5 minutes (Schedule a

相关标签:
1条回答
  • 2021-01-26 08:18

    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;

    0 讨论(0)
提交回复
热议问题