On Fri, May 4, 2012 at 10:02 AM, agustino <siau_...@yahoo.com> wrote:
> Hi All,
>
> I am using Camel 2.9.2 and activeMQ 5.5. I face the problem file not found
> when move the original file to success folder when successfully
> processed.This is my scenario:
> read file from folder /input -> do transformation -> put the output to queue
> -> move the original file to /success folder
>
> from("file://input").onCompletion().onCompleteOnly().useOriginalBody().to("file://success").
> processRef("myProcessor").to("activemq://queue:output");
>
> Please kindly to give me the hint.
>

Thats expected. onCompletion runs async.
If you want to move succesfull files then use the move option on the
file endpoint

from(file:inbox?move=successDir")
 ....


> Thanks
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/onCompletion-not-working-when-move-file-tp5685102.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/

Reply via email to