camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From talk2patel86 <talk2pate...@gmail.com>
Subject Camel File component should not rename file when an exception is thrown
Date Mon, 28 Oct 2013 06:11:02 GMT
Hi There,
 I have camel route configured as below: 

<route id="text-file-route">
			<from
			
uri="file:files/merchant?antInclude={{include-file-type}}&amp;initialDelay=1000&amp;delay=1000&amp;move=${file:name.noext}.processed"
/>
			<split streaming="true">
				<tokenize token="\n" />
				<process ref="splitBatchAdapterProcessor" />
				<process ref="merchantStreamProcessor" />
				<process ref="merchantTableProcessor" />
				<to uri="mock:dummy" />
			</split>
		</route>

With current configuration the file gets renamed even if an exception is
thrown while processing the file.
What i want is, the file should only be rename if no exception is thrown
while the file.

I an using camel 2.12.




--
View this message in context: http://camel.465427.n5.nabble.com/Camel-File-component-should-not-rename-file-when-an-exception-is-thrown-tp5742284.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message