You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by pelojoy <pe...@gmail.com> on 2017/06/21 18:18:35 UTC

File2 component: infinitely loop

I am using File2 component to process some file in a directory. But if it
fails to move file to 'in-process' directory for whatever reason(maybe no
permission), the file will be stuck in the directory and will be processed
over and over again. Setting idempotent=true doesn't have any effect. 



--
View this message in context: http://camel.465427.n5.nabble.com/File2-component-infinitely-loop-tp5805011.html
Sent from the Camel - Users mailing list archive at Nabble.com.

AW: File2 component: infinitely loop

Posted by "Leber, Thomas" <th...@omnetric.com>.
Hi,

This sound like the normal desired behavior of camel. 
Camel cannot move/process the file correctly and makes a complete rollback.
If you want to changes this behavior, then you need to add exception handling: http://camel.apache.org/error-handling-in-camel.html

-----Ursprüngliche Nachricht-----
Von: pelojoy [mailto:pelojoy@gmail.com] 
Gesendet: Mittwoch, 21. Juni 2017 20:19
An: users@camel.apache.org
Betreff: File2 component: infinitely loop

I am using File2 component to process some file in a directory. But if it fails to move file to 'in-process' directory for whatever reason(maybe no permission), the file will be stuck in the directory and will be processed over and over again. Setting idempotent=true doesn't have any effect. 



--
View this message in context: http://camel.465427.n5.nabble.com/File2-component-infinitely-loop-tp5805011.html
Sent from the Camel - Users mailing list archive at Nabble.com.