camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phillip Wirth (JIRA)" <>
Subject [jira] [Comment Edited] (CAMEL-11415) FTP process is not running async
Date Thu, 15 Jun 2017 16:08:00 GMT


Phillip Wirth edited comment on CAMEL-11415 at 6/15/17 4:07 PM:

[] is there specific link regarding this topic?

Lists also FTP...

was (Author: schaum):
[] is there specific link regarding this topic?

> FTP process is not running async
> --------------------------------
>                 Key: CAMEL-11415
>                 URL:
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.19.0
>            Reporter: Phillip Wirth
> Hi there.
> According to camel-ftp can be
run async.
> However it is not possible since {{org.apache.camel.component.file.remote.RemoteFileConsumer#processExchange}}
sets an exchange property {{Exchange.UNIT_OF_WORK_PROCESS_SYNC}} to {{true}} and in {{org.apache.camel.processor.CamelInternalProcessor#process}}
this property gets evaluated and the processor is not running in async.
> The comment in {{processExchange}} states that "mark the exchange to be processed synchronously
as the ftp client is not thread safe" - the ftp client or the library? If the library is meant,
is jsch for sftp, thread safe? Shouldn't this code be in the {{FTPConsumer}} class?
> Also {{FromFtpAsyncProcessTest}} is kinda wired because it uses its own executor service
to run async?
> When async processing from an ftp espically sftp source is not possible the following
code does not work as expected either
> {code}
>         onException(Exception.class)
>                 .maximumRedeliveries(maxTries)
>                 .redeliveryDelay(TimeUnit.HOURS.toMillis(delay))
>                 .continued(true);
> {code} 

This message was sent by Atlassian JIRA

View raw message