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: combining the existing content with a file having dynamic uri then moving the file
Date Mon, 29 Jul 2013 06:24:51 GMT
On Sun, Jul 28, 2013 at 8:18 PM, skumar <skumar@stonewain.com> wrote:
> Thanks,Claus.It is working fine.But I have still one question.Can I use it
> for reading the pattern based file and moving the file to a archive
> directory.Something like this:
>
>  <from uri=&quot;file:{{inbound_home}}/pgsl?&lt;b>include=.*.*xls*&amp;
> move={{data_home}}/${file:onlyname.noext}_${date:now:yyyyMMdd}.XLS&amp;
> moveFailed={{data_home}}/errorfile&amp;doneFileName=LOADGENERICSUPPLY" />
>

No you would need to move the file yourself, if you use the
<transform><simple> code I showed.
Though you can use onException to handle the failed situation.

BTW there is a JIRA ticket about allowing dynamic <enrich> and
<pollEnrich> so in a future Camel release this would be easier.



>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/combining-the-existing-content-with-a-file-having-dynamic-uri-then-moving-the-file-tp5736365p5736374.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

Mime
View raw message