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: File consumer deletes file after processing first endpoint in multicast
Date Fri, 05 Oct 2012 09:19:12 GMT
Hi

I logged a ticket to remember to look into this
https://issues.apache.org/jira/browse/CAMEL-5685

On Wed, Oct 3, 2012 at 9:17 PM, smokemaker <smokemaker@mail.ru> wrote:
> Hi, all! Could you help me find a mistake in following case:
>
> file consumer with "delete=true" in options multicasts exchange to several
> destinations. But when exchange is processed in first destination, the file
> is being deleted, so the second can't get the File from GenericFile.
>
> Routes are:
>  from("file://d:/buffer_in?recursive=true&delete=true")
>         .multicast(new UseLatestAggregationStrategy())
>                 .shareUnitOfWork()
>                 .to("direct:medo.file.test", "direct:medo.file.agregator")
>         .end()
>         .to("activemq:queue:medo.file.test2");
>
>  ....
>
> /** AFTER THIS AGREGATION THE FILE IS DELETED **/
>  from("direct:medo.file.agregator")
>         .aggregate(header(MedoUtils.MH_FILE_CORRELATION),  new FileAgregator())
>         .to("direct:next.agregator");
>
> /** HERE THE FILE DOESN'T EXIST **/
>  from("direct:medo.file.test")
>         ...... and so on
>
>
> AFAIK, in this configuration the file should be deleted after completing all
> the routes, not only the first.
>
> System information: Java 1.6.0_31, Windows XP 32bit, Camel 2.8.5 (OSGI
> bundle in ServiceMix 4.4.2)
>
> Thank you!
>
> Serge.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/File-consumer-deletes-file-after-processing-first-endpoint-in-multicast-tp5720510.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message