Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 72819 invoked from network); 4 Jun 2010 07:44:09 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Jun 2010 07:44:09 -0000 Received: (qmail 25742 invoked by uid 500); 4 Jun 2010 07:44:09 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 25626 invoked by uid 500); 4 Jun 2010 07:44:07 -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 25602 invoked by uid 99); 4 Jun 2010 07:44:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jun 2010 07:44:06 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 74.125.82.173 as permitted sender) Received: from [74.125.82.173] (HELO mail-wy0-f173.google.com) (74.125.82.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jun 2010 07:44:00 +0000 Received: by wyb36 with SMTP id 36so630000wyb.32 for ; Fri, 04 Jun 2010 00:43:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=Sso8eVdbYhUuNKL9913TXUVAwVXHZ6FTrQF9E/NWJeo=; b=kD9NK501RZuqjS7Dg/TskrGJ+vptdWE5jrALIuKWL5YJIFMkGiHUnId5phNDL8tLLZ u5cmnAeOBgTnAV4hNuZTfI/6x7WI1avOcLqTXxKN+82GyAMiGZrtsi7EhQbEqUIJNL3h TbDuzdodV8Rin7ieh5AcEBDNGPJTm+d8K+cik= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=KOlCPXas+Jq3VRDbVkPGwc9+VaPClVvWH2w/wHrtNtjZ6g8yVzzYyqCkzvZkFBfNHZ Cx/ATJJv/EcPiLGhyJZ1QOR+XbHlPgw72yApebtSBEdLRf0Cil8UfoWatVxTL7WZGQ2u udUWppZYUTId0LSJ3JfT9q9B6M+6Q02aGIIOo= Received: by 10.216.91.12 with SMTP id g12mr1948220wef.78.1275637420218; Fri, 04 Jun 2010 00:43:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.6.140 with HTTP; Fri, 4 Jun 2010 00:43:20 -0700 (PDT) In-Reply-To: References: From: Claus Ibsen Date: Fri, 4 Jun 2010 09:43:20 +0200 Message-ID: Subject: Re: FTP Component That Consumes On Demand To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Fri, Jun 4, 2010 at 9:29 AM, Guillaume Nodet wrote: > I think Carlo wants to be able to *not* always poll for new files, > which is what the polling consumer does. > Instead, he's looking for something like an HTTP GET method, which is > not really a consumer but a provider with no input. > The idea (iiuc) would be to send an exchange to the ftp provider which > would cause the retrieval of the given file. > > I don't think this is possible yet. > This is possible using the polling consumer EIP. It will poll for a remote file on the FTP server. And from the routing DSL you can use pollEnrich also. However one caveat is that setting the endpoint uri in a dynamic fashion is not easy. And we know this and there is a JIRA ticket for that. So yes its possible. > On Fri, Jun 4, 2010 at 09:20, Claus Ibsen wrote: >> Hi >> >> You are looking at the polling consumer EIP >> http://camel.apache.org/polling-consumer.html >> >> However Content Enricher EIP is also doable >> http://camel.apache.org/content-enricher.html >> >> as there is a pollEnrich DSL for that. However passing in the filename >> on the URI is a bit hard to do. >> There is a JIRA ticket to enhance this in the future >> >> >> >> On Fri, Jun 4, 2010 at 5:29 AM, Carlo Camerino wrote: >>> Hi, >>> >>> Is there an ftp component that consumes a file on edemand? and not a >>> polling. >>> >>> for example i have the file name already and want to fetch this file co= ming >>> from an ftp server, >>> how would i =A0route it? >>> >>> from("direct:getfile").to("ftp://someurl?file-name=3Dsd?") >>> >>> would this fetch a file or would this create a file on that server? >>> >>> thanks >>> carlo >>> >> >> >> >> -- >> Claus Ibsen >> Apache Camel Committer >> >> Author of Camel in Action: http://www.manning.com/ibsen/ >> Open Source Integration: http://fusesource.com >> Blog: http://davsclaus.blogspot.com/ >> Twitter: http://twitter.com/davsclaus >> > > > > -- > Cheers, > Guillaume Nodet > ------------------------ > Blog: http://gnodet.blogspot.com/ > ------------------------ > Open Source SOA > http://fusesource.com > --=20 Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus