Hi
See
http://camel.apache.org/file-language.html
You should use:
doneFileName=${file:name.noext}.ready
On Mon, Oct 20, 2014 at 10:53 AM, BURN, James <[email protected]> wrote:
> Sorry I should add, this is using ServiceMix 5.3.0 and camel 2.13.2
>
> Cheers
> J
>
> -----Original Message-----
> From: BURN, James [mailto:[email protected]]
> Sent: 20 October 2014 09:48
> To: [email protected]
> Subject: Questions about doneFileName
>
> Hi
>
> We are using ServiceMix to subscribe to a service by looking for "done files"
> (.ready) before downloading a copy of the data (.dat) files.
>
> One problem we have is that once we have downloaded a copy of a data file we
> must remove the .ready file but leave the .dat file
>
> Here is my route:
>
> <camelContext xmlns="http://camel.apache.org/schema/blueprint"
> id="camel-ftpdownload">
> <route>
> <from
> uri="file:/data/readyfiletestIn/?doneFileName=${file:name}.ready&delete=false"/>
> <to uri="file:/data/readyfiletestOut"/>
> </route>
> </camelContext>
>
> We've also tried noop=true but this leaves a .ready file once we have
> downloaded a copy of the .dat.
>
> We can work around this by calling a XSLT next in the route to delete the
> .ready file independently, but this seems to be compounding the route
> complexity.
>
> Q2 - the doneFileNames we are get aren't necessarily the .dat file name with
> a .ready extension. What is the best way to work with this. Ie where we want
> to work with:
> datafile123.dat and datafile123.ready rather than datafile123.dat and
> datafile123.dat.ready ?
>
> Thanks
>
> James
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/