Re: Camel route - how to move the file in the failed directory if there's an error

2013-10-01 Thread Claus Ibsen
camel-spring-batch would have to fail with an exception for the file consumer to move the file to the failed directory. Not sure how spring batch triggers this. I suggest to dive into the source code / unit tests to take a look. On Tue, Oct 1, 2013 at 12:31 AM, nguyen wrote: > Oups the route did

Camel route - how to move the file in the failed directory if there's an error

2013-09-30 Thread nguyen
Hi all, i'm new in camel, so thanks in advance for any help.I have the following route defined in my context file. This route is using in the context of a spring batch job. I would like to do the following:If the my batch job fails, because there's an error in my input file, for example if th

Re: Camel route - how to move the file in the failed directory if there's an error

2013-09-30 Thread nguyen
Oups the route didn't show.. Inserted now the route definition. http://camel.apache.org/schema/spring";> Route to poll a directory for transaction alert file and launch the job ${headers.CamelFileNameOnly}