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: Want to keep original file but want to delete done file.
Date Mon, 17 Aug 2015 08:25:34 GMT
There is no support for deleting only the done file. You would need to
delete it manually, you can add a step in the route that does this at
the end.


On Thu, Aug 13, 2015 at 9:01 PM, Manish <manish.428@gmail.com> wrote:
> Hi,
>
> I am new to camel..
> My requirement is: I want to consume file using file endpoint, but I want to
> keep the file as it is, so that other application can read this file..but
> want to delete the donefile so that it should not processed again by my
> application.
>
> eg: shipment.xml : file to be consumed
>      shipment.trg : done file, shipment.xml will be procced only when its
> trg file exist..
>
> After processing, shipment.trg file should be deleted and shipment.xml file
> should be as it is..
>
> I tried with...
> <from
> uri="file:inbound/source?noop=true&amp;delay=3000&amp;directoryMustExist=true&amp;doneFileName!=${file:name.noext}.trg"/>
>
> In this case, both file exists..
>
> How can I achieve it..
>
> Thanks
> Manish
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Want-to-keep-original-file-but-want-to-delete-done-file-tp5770697.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2nd edition: http://www.manning.com/ibsen2

Mime
View raw message