camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nguyen <quynh.a.ngu...@gmail.com>
Subject Re: Camel route - how to move the file in the failed directory if there's an error
Date Mon, 30 Sep 2013 22:31:52 GMT
Oups the route didn't show.. Inserted now the route definition. 

<camelContext id="transactionBatchRoutes"
xmlns="http://camel.apache.org/schema/spring">
<route id="transactionFileRoute">
	<description>
		Route to poll a directory for transaction alert file and launch the job
	</description>
	<from
	 
uri="file:{{batch.process.watch.directory}}?include={{transaction.file.name.pattern}}&amp;delay={{transaction.file.poll.delay}}&amp;doneFileName=${file:name}.sig&amp;move={{batch.process.done.directory}}&amp;moveFailed={{batch.process.failed.directory}}"
/>
	    <setHeader headerName="fileName">
		<simple>${headers.CamelFileNameOnly}</simple>
	   </setHeader>

<to uri="spring-batch:transactionFileJob?jobLauncherRef=jobLauncher" />
		</route>
	



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-route-how-to-move-the-file-in-the-failed-directory-if-there-s-an-error-tp5740611p5740613.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message