On Fri, May 4, 2012 at 11:06 AM, agustino <siau_...@yahoo.com> wrote: > 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. >
Please spend 5 minutes reading the documentation first. http://camel.apache.org/file2 There is a move and moveFailed option. And by default Camel only moves successful files. Files that fail, will by default be left as is, unless you use the moveFailed option. > 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. -- Claus Ibsen ----------------- CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/