Then you can use a filter to only call the bean when the batch is complete.
<from ...> ... <filter> <when><header> CamelBatchComplete</header></when> <to bean:lucene> </filter> On Tue, Sep 10, 2013 at 8:24 PM, gudiseashok <[email protected]> wrote: > Hi Ibsen, > > Thanks allot for responding to my problem, but I have tried like that > initially doing everything in one route. > > But problem with that was, if my "remote folder" has 10 fiels then it has to > do indexing after completion on all those 10 files, instread that it is > reacting on each file download. My requirement is I have to do indexing > after complete transfer done. > > Also you have mentioned, I should not use timer, could you please mention > where should I use scheduler ( I mean is that on router i.e. by using > SimpleScheduledRoutePolicy or on sftp command? I would be greatful if you > can specify where scheduling has to go and how to do one after one (if no > need of pipeline) > > > <from ftp> > <to file> > <to bean:lucene> > > And you might have already been informed (nothing related to my issue), when > I post (new or reply) I am getting servlet exception in forum) > > I appreciate your help. > > > Regards > Ashok Gudise > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Second-router-in-Pipeline-not-being-reached-in-repeated-interval-scheldule-tp5739050p5739056.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
