hello, 

        I have tried with  the  below route & filter configuration , its
works fine once , the filter is never called again  after the first run  .
Do i need to call the filter explicitly  to start the poll again? Since in
my Filter I am getting the sequence from the Db always in the accept method.

<route shutdownRunningTask="CompleteCurrentTaskOnly" id="UserCSVToDB" >
                    <from
uri="file:///C:\FS\processing\?delay=3600000&amp;readLock=true&amp;move=C:\FS\complete&amp;filter=#filterDS&amp;charset=utf-8"/>
                      <setHeader headerName="sourcename">
                        <simple>DS</simple>
              </setHeader>
               <setHeader headerName="fileseq">
                        <method ref="DatabaseBean"
method="getSequence(${header.sourcename})" />
              </setHeader>
                    
                    <split streaming="true">
                      <tokenize token="\n"></tokenize>
                      <unmarshal>
                        <csv/>
                      </unmarshal>
                      <log message="The message contains ${body}"/>
                    </split>
                    <to
uri="bean:DatabaseBean?method=updateSequence(${header.sourcename},${header.fileseq})"/>
    </route>





--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-file-component-URI-dynamic-options-Filter-query-tp5776861p5777100.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to