2016-04-26 31 views
0

這是一個類的服務的mule配置文件,它基本讀取順序文件並處理它。有時代碼會混淆,它會處理兩個或更多文件並被凍結。我希望代碼一次只能讀取一個文件。我配置的這個石英連接器一次只能選擇一個文件

<quartz-connector name = "oneThreadQuartzConnector"> 
    <quartz:factory-property key ="org.quartz.threadpool.threadcount" value="1"/> 
    </quartz-connector> 
    <service name="Retail Transfer Request Service"> 
     <inbound> 
      <file:inbound-endpoint path="#{es.dir.008}" moveToDirectory="#{es.dir.008}/archive/ORD"> 
      <file:filename-wildcard-filter pattern="OR*" /> 
      </file:inbound-endpoint> 
     </inbound> 

     <component> 
      <spring-object bean="retailTransferRequestAction" /> 
     </component> 

     <default-service-exception-strategy> 
      <vm:outbound-endpoint path="found.error.queue" /> 
     </default-service-exception-strategy> 
    </service> 

回答

1

石英將按數據一個接一個,如果你想同步調用最好的選擇就是選擇處理策略在流動,並使其同步

<flow name="sampleFlow" processingStrategy="synchronous"> 
相關問題