camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamesburn <>
Subject Re: file trigger processing lots of files
Date Wed, 16 Mar 2016 13:06:00 GMT
Hi. Thanks for looking at this. Here are the routes below. 

I think the problem is confounded by my wanting to control processing the
messages asynchronously - we have to cope with a potential 100,000 files. If
I take away <threads> it works as I'd expect, with control-bus stopping the
route, but the messages appear to be processed one at a time. I think it's
perhaps using <threads> which I need to spend time on, but I would like to
know that I can use something like exchangeProperty.CamelBatchIndex to tell
me when they have all finished processing.


<camelContext xmlns=""
	<propertyPlaceholder  id="props"
	<route id="headerCollect">
		<log message="starting ProcessProducts route"/>
		<to uri="controlbus:route?routeId=processProducts&amp;action=start"/>
	<route id="processProducts" autoStartup="false">
			<convertBodyTo type="String"/>
					<log message="9780193371644 found in number
					<log message="9780193371644 finished"/>
			<to uri="file:{{onix.file.dropoff.location}}"/>
			<log message="Processed record index no
${exchangeProperty.CamelBatchIndex} out of
					<simple>${exchangeProperty.CamelBatchComplete} == 'true'</simple>
					<log message="Batch of XML files finished?:
					<to uri="controlbus:route?routeId=processProducts&amp;action=stop"/>

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

View raw message