camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beschi <>
Subject is it better to use aggregator to write a large file hourly using messages from active mq queue?
Date Wed, 21 Dec 2016 05:42:48 GMT
I have a requirement of creating a large file hourly, the content of the
files will be the records/line from active mq queue.

I am using the following code, is there any better option?

		<route id="largeFileWritter">
			<from uri=""/>
			<log loggingLevel="INFO" message="Adding record to  File ${body}" />
			<camel:setHeader headerName="fileName">
				<camel:simple>Test File_${date:now:yyyyMMddHHmmssSSS}.txt</camel:simple>
			<aggregate strategyRef="aggregatorStrategy" forceCompletionOnStop="true"

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

View raw message