camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: Dynamic origin file components?
Date Sat, 29 May 2010 04:25:50 GMT
You can consider to use split[1] to do this kind of job.

[1]http://camel.apache.org/splitter.html

Willem
Mattias Severson wrote:
> That seems like a neat solution. :-)
> 
> Question:
> Is it possible to send several files to one receiver in a similar way (e.g.
> by providing a Collection<File> as body)? Naturally, I can iterate over the
> file collection and send the files one by one, but I guess that the
> performance would be better if all files can be sent during the same FTP
> session. 
> 
> 
> Claus Ibsen-2 wrote:
>> ProducerTemplate template = ...
>> File target = new File("the file name here");
>>
>> template.sendBodyAndHeader(ftpEndpointHere, target,
>> Exchange.FILE_NAME, "the file name to be written on the ftp server");
>>
> 


Mime
View raw message