camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
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 <> 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:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
Twitter: davsclaus
Author of Camel in Action:

View raw message