delete=true only deletes the file if the exchange was processed
succesfully. If some exception is thrown it will rollback, and leave
the file untouched. Or if you use moveFailed the file is moved to
another directory.

If you want to delete the file also if an exception happen then use
the Camel error handler, to handle the exception so the exchange is a
success.
http://camel.apache.org/error-handling-in-camel.html

On Tue, Jul 1, 2014 at 2:08 PM, Gardella juan
<gardellajuanpa...@gmail.com> wrote:
> Using moveFailed does not solve the problem, "delete" does not delete the
> file when some exception happens during the execution, why?
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/File-component-does-not-delete-file-tp5753140p5753142.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to