camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JKemp <>
Subject Re: File Exists
Date Fri, 31 Jan 2014 01:40:03 GMT
I think I'm struggling a bit with where to put the filter expression.  Say I
have a route like this:

		<route id="report-file-consolidation">
			<from uri="file:///data/input?delete=true&amp;include=.*.txt" />
			<split streaming="true">
				<tokenize includeTokens="true" token="\n" group="5000" />
				<convertBodyTo type="String" charset="UTF-8" />
				<setHeader headerName="CamelFileName">
				<to uri="log:lineparser?showBody=true&amp;showHeaders=true" />
				<to uri="file:///data/output?fileExist=Append" />

Where would I put this filter expression?  It seems that each file is
processed in its own Exchange, so I don't know what sort of expression I
could put in to detect that they've both been found.  Or should I be putting
an Aggregator at the end and adding the filter to that somehow?

Thanks for the quick reply.

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

View raw message