Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 66442 invoked from network); 6 May 2009 12:09:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 May 2009 12:09:34 -0000 Received: (qmail 56646 invoked by uid 500); 6 May 2009 12:09:33 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 56583 invoked by uid 500); 6 May 2009 12:09:33 -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 56573 invoked by uid 99); 6 May 2009 12:09:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 May 2009 12:09:33 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.218.178 as permitted sender) Received: from [209.85.218.178] (HELO mail-bw0-f178.google.com) (209.85.218.178) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 May 2009 12:09:18 +0000 Received: by bwz26 with SMTP id 26so57139bwz.20 for ; Wed, 06 May 2009 05:08:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=IE+k9+vmU5CGLBP+/LSTfR4EYv5BgldfpcbeyvvBIvM=; b=q8Ljx5JgRFnGDxGx0lOSJUnLbiuHLBCby6rH+2IsOsrn+OX/pXW9HL4IAyM51WY11I iMjiqmRVmvzPgqZJ8+qR0bkbCJ+Mbr9LPQ40TvFjKIyPDZvZdgN2RzDvaCrsT6gYX3TO aJfSXx89syikOM+cDnv6CB8pUXEvFqDCceH3c= 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=rSfP2flNHiY+HQMSKYEfAyzci5Y7EjjpDZR0ZInT2pZRiLYCLRUeO1FsVs/q9lQtOe RWtpu7imwZdmShMJX3OBZmYoUwVPLEaza5Ub2jv1alNwjU3BnFIOVou4Mv869nWAqdoP nEbgfb3S5lIe1xwYyczg3sn8LDE7PEN8T/Sco= MIME-Version: 1.0 Received: by 10.223.114.208 with SMTP id f16mr852924faq.91.1241611737229; Wed, 06 May 2009 05:08:57 -0700 (PDT) In-Reply-To: <4A0179B2.10904@vpro.nl> References: <4A017425.7040602@vpro.nl> <4A0179B2.10904@vpro.nl> From: Claus Ibsen Date: Wed, 6 May 2009 14:08:37 +0200 Message-ID: <5380c69c0905060508i38da5bday16734b1ccef5c950@mail.gmail.com> Subject: Re: File component: autoCreate To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Ah that was an oversigt in the wiki documentation. autoCreate only applies for the file producer. So when you consume with file it expects the starting directory to exists. On Wed, May 6, 2009 at 1:51 PM, Nils Breunese wrote: > Nils Breunese wrote: > >> I'm using Camel 2.0-SNAPSHOT. On http://camel.apache.org/file2.html I read >> that autoCreate has a default value set to true. However, even when I >> explicitly set autoCreate=true in the URI >> (file:directoryName?autoCreate=true) I get an endless stream of this >> repeating message: >> >> ---- >> 6-mei-2009 13:26:09 org.apache.camel.component.file.FileConsumer >> pollDirectory >> WARNING: Cannot poll as directory does not exists or its not a directory: >> directoryName >> ---- >> >> When I manually create the directory everything is fine, but then of >> course autoCreate is no longer of any use. >> >> Are others seeing this and is this a bug or is there something I'm >> missing? > > I just found out that autoCreate doesn't work when used like this: > > ---- > from("file:directoryName").to(...); > ---- > > But it does work when used in the to-part like this: > > ---- > from(...).to("file:directoryName"); > ---- > > Guess I need something else to make sure the directory exists when creating > a new route starting with a file endpoint. > > Nils Breunese. > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus Apache Camel Reference Card: http://refcardz.dzone.com/refcardz/enterprise-integration Interview with me: http://architects.dzone.com/articles/interview-claus-ibsen-about?mz=7893-progress