camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agustino <siau_...@yahoo.com>
Subject Re: onCompletion not working when move file
Date Fri, 04 May 2012 09:06:16 GMT
Hi Claus,

Thanks for the reply.

If I use move=successDir, it means that no matter it's success or fail, it
will move the file to successDir.
My expected result is, if the file is successfully processed to queue, then
move to successDir else failDir.

I tried to add
onException(Exception.class).handled(true).to("file://failDir"), it gives me
wrong result, which is failDir and successDir contain the same file.

Thanks

--
View this message in context: http://camel.465427.n5.nabble.com/onCompletion-not-working-when-move-file-tp5685102p5685247.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message