camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Quinn Stevenson <qu...@pronoia-solutions.com>
Subject Re: file trigger processing lots of files
Date Tue, 15 Mar 2016 14:21:49 GMT
Yes - please share simplified versions of your routes.  I’m sure we can come up with something.

> On Mar 15, 2016, at 6:21 AM, jamesburn <James.Burn@oup.com> wrote:
> 
> Hi
> 
> Many thanks for your hints Quinn.
> 
> With some playing, I've got Controlbus to work fairly well. I could have
> done with using that a year ago!
> 
> Regarding stopping the second (main processing) route, I was leaning towards
> using the exchange property CamelBatchComplete as a trigger. However, this
> seems to be set to true as soon as the last file file is collected, not
> processed/deposited, so if there's a delay in the processing of a file, it
> is stopped too early. I tested this by putting a delay in my route for one
> message.
> 
> I thought about having another route count the number of files in the "done"
> folder and somehow use this as a route-stop-trigger, but I can't get the
> number of files to expect, and in any case feel I'm not really using Camel
> the way it's intended.
> 
> Have you any other thoughts/tricks I can use? Shall I post a stripped down
> version of my routes?
> 
> Thanks
> 
> James
> 
> 
> James
> 
> 
> 
> --
> View this message in context: http://camel.465427.n5.nabble.com/file-trigger-processing-lots-of-files-tp5778807p5779088.html
> Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message