camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Linus Brimstedt <li...@brimstedt.se>
Subject Re: One exchange at a time
Date Mon, 02 May 2011 09:55:11 GMT
thanks, Ill have a look there :-)

br
/Linus

On Mon, May 2, 2011 at 10:10 AM, Claus Straube <claus.straube@catify.com>wrote:

> Hi Linus,
>
> I think page 420 (and the ones after this) in Camel in action will face
> such a issue. You can stop a route on completion and start it again, if your
> script has been finished.
>
> Best regards - Claus
>
>
> On 02.05.2011 09:36, Linus Brimstedt wrote:
>
>> Hi!
>>
>> On Mon, May 2, 2011 at 7:44 AM, Claus Ibsen<claus.ibsen@gmail.com>
>>  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<linus@brimstedt.se>
>>> 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: cibsen@fusesource.com
>>> 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/
>>>
>>>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message