Hi!

On Mon, May 2, 2011 at 7:44 AM, Claus Ibsen <[email protected]> wrote:

> Hi
>
> What is this "piece of software"? Is that some external software that
> scan for files and process those (eg its not Camel).
>

It could be pretty much anything that's scanning the destination directory
and processing the files, deleting them afterwards.



> I dont suppose -> exec is the camel-exec component? But that "piece of
> software"?
>
>
I meant the external process is run using camel-exec.

To (try) to be more clear using java dsl:

from("ftp://ftp.somewhere.com/somepath
").to("file:///home/someone/somedir/").to("exec:/home/someone/script.sh");



> And what does it do after it has processed the file, is the file
> moved/deleted?
>
>
Yes, it's moved or deleted

br
/linus


>
>
> On Sun, May 1, 2011 at 9:40 PM, Linus Brimstedt <[email protected]>
> wrote:
> > Hello
> >
> > I have a simple route like:
> >
> > ftp:// (poll) -> file:// -> exec:
> >
> > I.e, files are picked up from ftp, moved to a directory on a server and
> then
> > some piece of software is run to process those files.
> >
> > My problem is that during the execution of the executable, if new files
> > appear on ftp (within poll time), they will start to move to the
> directory.
> >
> > I wish that a new ftp transfer is not started until the executable has
> > completely finished.
> >
> > How can i accomplish this?
> >
> > (if this concept is described in camel in action, feel free to refer to
> it.
> > I have it but didnt plough through it all yet)
> >
> > thanks in advance!
> >
> > /Linus
> >
>
>
>
> --
> Claus Ibsen
> -----------------
> FuseSource
> Email: [email protected]
> Web: http://fusesource.com
> CamelOne 2011: http://fusesource.com/camelone2011/
> Twitter: davsclaus
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/
>

Reply via email to