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.

Reply via email to