camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fxthomas <>
Subject Re: Camel file component URI dynamic options & Filter query
Date Mon, 01 Feb 2016 17:08:35 GMT
I tried with a new approach it works  atleast for basic condition  . But the
problem is if there is any file left in the folder which did not match in
the Run , the route keeps on polling and the filter is called everytime .

1) Is there any way in which the route can be told to stop pooling after
subsequent polls which did not result any file processing.

2) There could be a gap in the sequence,  i.e. after 2 , 4 can be the next
file how can i come to know that the route has finished processing one
cylce, so that I can increment again in filter and the route will work

3) Incase there is a file les than sequence or any junk file , it should be
moved to different folder. Since I am using a Filter , not sure if that can
be done . I can configure a different route to counter this.

 <route shutdownRunningTask="CompleteCurrentTaskOnly" id="RouteFilter" >
     <from uri="timer://foo?period=2h"/>
     <to uri="controlbus:route?routeId=UserCSVToDB&amp;action=start" />

    <route shutdownRunningTask="CompleteCurrentTaskOnly" id="UserCSVToDB"
		      <setHeader headerName="sourcename">
               <setHeader headerName="fileseq">
      			<method ref="DatabaseBean"
method="getSequence(${header.sourcename})" />
		    <split streaming="true">
		      <tokenize token="\n"></tokenize>
		      <log message="The message contains ${body}"/>

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message