You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by yxzhao <yx...@stonewain.com> on 2013/02/26 12:30:57 UTC

Copy Files with doneFile in different Folder

Hi all,

We need to design a route as below.

  <route id="copyFiles">
     <from uri="file://project/triggers?fileName=COPYFILES"/>
     <to uri="bean:dbBean?method=getFileNames"/>
     ...copy files from sourceDirectory to destDirectory...

What about sourceDirectory and destDirectory are on different servers?

Could anyone tell us if it's possible to get this done with camel existing
components or do we have to customize something for it?

Thanks in advance for any help or hints.



--
View this message in context: http://camel.465427.n5.nabble.com/Copy-Files-with-doneFile-in-different-Folder-tp5728165.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Copy Files with doneFile in different Folder

Posted by Pontus Ullgren <ul...@gmail.com>.
(Shamless promo for own project)
Or if you are running windows you can look at camel-smb
(https://github.com/Redpill-Linpro/camel-smb)

// Pontus

On Tue, Feb 26, 2013 at 1:13 PM, Willem jiang <wi...@gmail.com> wrote:
> If the source and target directory is not on the same box, you need to check the camel-ftp or camel-sftp component[1]
>
>
> [1]http://camel.apache.org/ftp2.html
> --
> Willem Jiang
>
> Red Hat, Inc.
> FuseSource is now part of Red Hat
> Web: http://www.fusesource.com | http://www.redhat.com
> Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
>           http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
> Twitter: willemjiang
> Weibo: 姜宁willem
>
>
>
>
>
> On Tuesday, February 26, 2013 at 7:30 PM, yxzhao wrote:
>
>> Hi all,
>>
>> We need to design a route as below.
>>
>> <route id="copyFiles">
>> <from uri="file://project/triggers?fileName=COPYFILES"/>
>> <to uri="bean:dbBean?method=getFileNames"/>
>> ...copy files from sourceDirectory to destDirectory...
>>
>> What about sourceDirectory and destDirectory are on different servers?
>>
>> Could anyone tell us if it's possible to get this done with camel existing
>> components or do we have to customize something for it?
>>
>> Thanks in advance for any help or hints.
>>
>>
>>
>> --
>> View this message in context: http://camel.465427.n5.nabble.com/Copy-Files-with-doneFile-in-different-Folder-tp5728165.html
>> Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).
>
>
>

Re: Copy Files with doneFile in different Folder

Posted by Willem jiang <wi...@gmail.com>.
If the source and target directory is not on the same box, you need to check the camel-ftp or camel-sftp component[1]


[1]http://camel.apache.org/ftp2.html
--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Tuesday, February 26, 2013 at 7:30 PM, yxzhao wrote:

> Hi all,
>  
> We need to design a route as below.
>  
> <route id="copyFiles">
> <from uri="file://project/triggers?fileName=COPYFILES"/>
> <to uri="bean:dbBean?method=getFileNames"/>
> ...copy files from sourceDirectory to destDirectory...
>  
> What about sourceDirectory and destDirectory are on different servers?
>  
> Could anyone tell us if it's possible to get this done with camel existing
> components or do we have to customize something for it?
>  
> Thanks in advance for any help or hints.
>  
>  
>  
> --
> View this message in context: http://camel.465427.n5.nabble.com/Copy-Files-with-doneFile-in-different-Folder-tp5728165.html
> Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).