Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 47145 invoked from network); 29 May 2010 04:26:27 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 May 2010 04:26:27 -0000 Received: (qmail 39095 invoked by uid 500); 29 May 2010 04:26:27 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 38974 invoked by uid 500); 29 May 2010 04:26:26 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 38953 invoked by uid 99); 29 May 2010 04:26:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 May 2010 04:26:25 +0000 X-ASF-Spam-Status: No, hits=-0.6 required=10.0 tests=AWL,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of willem.jiang@gmail.com designates 74.125.83.173 as permitted sender) Received: from [74.125.83.173] (HELO mail-pv0-f173.google.com) (74.125.83.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 May 2010 04:26:18 +0000 Received: by pvg12 with SMTP id 12so756099pvg.32 for ; Fri, 28 May 2010 21:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=x0bqsxNgovIbhgXgG4/KwNcI4hBBUv1ktsXy+4LugmY=; b=UgRYnXm4NqL05rRtXRL1GB6YUmUKOEuBPa0txeJSAlE1a/tX+QgcMBth3PnLRNh92x m0Y+fJm0muOd88KfBFjN+uSoECXUWi8CAyw+ZTlrtq6k5a/4xb4T3AJ2Nr2e93Itx0Ic PS74nF0CtzQmpJ5UQAkbmgAyFi6W0qDHZFYkc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=wHdx/P4FCmQ1feaTPi89a+0BcVdHFEyzpG7/mcG3gJGP2WxdIMa3UJKZaQdajncsPR ZPxgc5zOJzMzcr7u04znPz3ChJcJDmSspmM3udfGB3FRPG7D43zWJsguygSuDFFyT2xv owUSdN+E5wmclJ6BNOfVddNmZOYD+tmOBGmS0= Received: by 10.143.20.30 with SMTP id x30mr841031wfi.57.1275107157672; Fri, 28 May 2010 21:25:57 -0700 (PDT) Received: from [192.168.0.158] ([125.34.9.242]) by mx.google.com with ESMTPS id c22sm25617555wam.18.2010.05.28.21.25.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 28 May 2010 21:25:56 -0700 (PDT) Message-ID: <4C00974E.8010604@gmail.com> Date: Sat, 29 May 2010 12:25:50 +0800 From: Willem Jiang User-Agent: Thunderbird 2.0.0.24 (Macintosh/20100228) MIME-Version: 1.0 To: users@camel.apache.org Subject: Re: Dynamic origin file components? References: <28705368.post@talk.nabble.com> <28709030.post@talk.nabble.com> In-Reply-To: <28709030.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 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"); >> >