camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: How to disable initial file rollback strategy
Date Thu, 03 Apr 2014 17:02:42 GMT
Hi

You can use wireTap("seda:remote") or likely also
.to("seda:remote?waitForTaskToComplete=Never")

On Thu, Apr 3, 2014 at 1:10 PM, a746076drdrb <a746076@drdrb.net> wrote:
> Hello,
>
> I have route like:
>
> from(file:input?preMove=inprogress&moveFailed=failed)
> .process(new SomeProcessor())
> .("file:input/processed", "file:route2", "file:route3").to("seda:remote")
>
> from("file:route2").to("ftp:foo)
> from("file:route3").to("ftp:bar)
> from("seda:remote").to("http:getfile").to("myendpoint:save")
>
> now in seda:remote route after to("http:getfile") I get an error saying
>
> org.apache.camel.processor.MulticastProcessor: Message exchange has failed:
> Sequential pro
> cessing failed for number 0 for exchange: Exchange[Message: [Body is null]]
> Exception: java.io.IOException: No such file or directory
> org.apache.camel.processor.MulticastProcessor: Done sequential processing 1
> exchange
>
> Apparently, seda thread tries to delete the file from first route
> 'input/inprogress' folder, which is probably moved by an other route.
>
> How can I disable initial file rollback strategy in my from("seda:remote")
> route? I just want it to work in my first route.
>
> Thanks for help!
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/How-to-disable-initial-file-rollback-strategy-tp5749721.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io

Mime
View raw message