camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reji Mathews <contactr...@gmail.com>
Subject Re: Help: FTP/SFTP File Delete Problem and FTP/SFTP Polling Problem
Date Wed, 14 Jan 2015 02:03:42 GMT
Hey buddy

I had faced similar issue few months back.
It so happened that my ftp admin hadn't provide delete and write
authorizations to my ftp credentials .

It would be a good idea to check with ur ftp admin personnel if these
rights are provided to ur ftp credentials.

Cheers
Reji
On 9 Jan 2015 12:36, "yeandone" <willcoursera@gmail.com> wrote:

> Hi, All.
>
>   I have an issue deleting a file with delete=true from a SFTP consumer.
> My
> route looks like the following:
> <route id="A_ROUTE">
>                 <from
> uri="
> sftp:amdin@xxx.com?password=xxx&amp;delete=true&amp;filter=#fileFilter"/>
>                         <choice>
>                                 <when>
>                                         <simple>${body} != null</simple>
>                                         <multicast>
>                                         <to uri="direct:a"/>
>                                         <to uri="direct:b"/>
>                                     </multicast>
>                            </when>
>                                 <otherwise>
>                                         <to uri="direct:b"/>
>                                 </otherwise>
>                         </choice>
>                         <to
> uri="controlbus:route?routeId=A_Route&amp;action=stop" />
> </route>
>
> whenever it runs, it will end up
> WARN Camel (platformSchedulerCamel) thread #7 - sftp://xxx
> org.apache.camel.component.file.GenericFileOnCompletion - Rollback file
> strategy:
>
> org.apache.camel.component.file.strategy.GenericFileDeleteProcessStrategy@4b474b47
> for file: RemoteFile[a.txt]
>
> Does anyone have any idea why it happens? What I want to do is deleting
> original file after it's processed by direct: a and direct: b and then stop
> the route which will stop the file polling from the sftp location. If
> nothing is picked, then I want to do some processing in direct:b and then
> stop the route.
>
> If I remove
> <to uri="controlbus:route?routeId=A_Route&amp;action=stop" /> at the end,
> the file will be deleted. However, the sftp consumer will never stop and
> keep polling stfp, which I do not want to happen.
>
> Any help or any ideas will be appreciated!!!
>
> Thanks,
> W
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Help-FTP-SFTP-File-Delete-Problem-and-FTP-SFTP-Polling-Problem-tp5761486.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

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