Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5868D10EC4 for ; Thu, 30 Jan 2014 10:15:14 +0000 (UTC) Received: (qmail 51923 invoked by uid 500); 30 Jan 2014 10:15:12 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 51488 invoked by uid 500); 30 Jan 2014 10:15:11 -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 51473 invoked by uid 99); 30 Jan 2014 10:15:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jan 2014 10:15:10 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.214.170 as permitted sender) Received: from [209.85.214.170] (HELO mail-ob0-f170.google.com) (209.85.214.170) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jan 2014 10:15:05 +0000 Received: by mail-ob0-f170.google.com with SMTP id va2so3294128obc.1 for ; Thu, 30 Jan 2014 02:14:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=pK6ei8M8hx4Ge6jxxOHNCCeh5Nm0OXZfUM2QQVddwhI=; b=Z94+t3DKzhAxFRJCrpDlmF6po5MtuEeNB5uil8r10lVxA8CwY5JVCHoFYx4vdNNgr/ uxF5yBjyI0W3Vrx+aXsmMwMYkgEAR2NeOpP2WcwyLCO0AQtPBL0LEa/A5zy3rasJplSO jzQQxMtP4oqaJfFYMSP9VxUkd+tT1Qk38LcyKt/28elzG47Y2ecIos/u5Z9BmItcNBYh S0pn0kNQ+dtLPWTg5NWoDnUSOgttHXNsMzt58wnqJEzQSDLsoYkiomboUBTLBgz1MHqU ZcV8ixKRLJhn4alJl7apCIdu0UEkDBFzg27ba4WlLRto1aTzTpO5QsXx8SrlGL+NfQJN nLZw== X-Received: by 10.182.223.114 with SMTP id qt18mr262512obc.61.1391076884163; Thu, 30 Jan 2014 02:14:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.60.23.101 with HTTP; Thu, 30 Jan 2014 02:14:24 -0800 (PST) In-Reply-To: <1391053782928-5746608.post@n5.nabble.com> References: <1391053782928-5746608.post@n5.nabble.com> From: Claus Ibsen Date: Thu, 30 Jan 2014 11:14:24 +0100 Message-ID: Subject: Re: File Exists To: "users@camel.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Jan 30, 2014 at 4:49 AM, JKemp wrote: > Hey guys, > > I'm trying to write a Camel route that will only kick off once two files are > present on the server, but I can't seem to figure out an easy way to do > this. I was hoping there'd be a Simple command for this or some feature in > the File component, but I haven't found anything that looks promising. > Yeah write a custom filter, and then only return true when both files are there. > I was thinking I could start my route with a file endpoint, then do a poll > enrich on the second file and kick out an error if the second file doesn't > exist, but this seems a little kludgy. Is there a better way to accomplish > this? > > Thanks. > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/File-Exists-tp5746608.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cibsen@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io