camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From contactreji <>
Subject Camel REST Api - Stream processing while downloading data
Date Wed, 30 Sep 2015 10:26:37 GMT
Hello guys

I have following route hitting a REST API and downloads an XML file. The
file is quite huge. About 30 mb + with about 5000 + records.

Now, I was wondering if I can start streaming the data. I might have to wait
about 1-3 mins to complete the download. But can i enable processing as soon
as the download starts. I have anyway enabled splitter with streaming=true. 

Am sorry if my Q doesn't make any sense but I was just curious! :-)

			<from uri="timer://foo?fixedRate=true&amp;period=3600000" />
			<setHeader headerName="Exchange.HTTP_QUERY">
				<simple trim="true">key=***************</simple>
			<setHeader headerName="Exchange.HTTP_METHOD">
				<simple trim="true">GET</simple>
			<log message="Data Downloaded - ${body}" />
			<split streaming="true">
				<tokenize token="Location" xml="true"></tokenize>
				<to uri="seda:WriteToOutDirectory" />

Reji Mathews
Sr. Developer - Middleware Integration / SOA ( Open Source - Apache Camel & Jboss Fuse
ESB | Mule ESB )
LinkedIn -
Twitter - reji_mathews
View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message