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 9CD7317E67 for ; Wed, 22 Apr 2015 15:50:35 +0000 (UTC) Received: (qmail 14049 invoked by uid 500); 22 Apr 2015 15:50:35 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 14005 invoked by uid 500); 22 Apr 2015 15:50:35 -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 13993 invoked by uid 99); 22 Apr 2015 15:50:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2015 15:50:34 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: message received from 54.164.171.186 which is an MX secondary for users@camel.apache.org) Received: from [54.164.171.186] (HELO mx1-us-east.apache.org) (54.164.171.186) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2015 15:50:30 +0000 Received: from mail-ig0-f178.google.com (mail-ig0-f178.google.com [209.85.213.178]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 899FC42ACD for ; Wed, 22 Apr 2015 15:50:10 +0000 (UTC) Received: by igbpi8 with SMTP id pi8so106748955igb.0 for ; Wed, 22 Apr 2015 08:49:25 -0700 (PDT) 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=1hQev2KHig7FpPyXpwarkc9FJEqZmQEiE/zU3+jwrC8=; b=gLbtaal8xAgObLfmGHY/yCTOVPpxQuVUs6sREuuDQ3eOdBfgnxO0889eA4EWEGm8Ll b8HkjTk1m+atZUVNatgs+vgYPxYpF9/IcLUg0izZJFlXTz4rvokduunVxjg913m2l6eZ VqLKLMIvo/p82JkN+ZQ6bVL9lJoib9Vi4jIq5tTQsRMbaxGsDvUWUv/VpdHAdH09M2eM wtS7eXzlqSfsJwG/PiBgh/AfWwUVIpFjZEI1oAPX/wQ0zVsNjKrWeANHBIQ/VUW+YSiI BZYVCBJ1Z+El1R+4zB1sIyexFrQ9BF64tQZVZNie5bGpZ7djDKdlRicHAb96Zc/gtzi6 VFVw== X-Received: by 10.43.169.137 with SMTP id nm9mr806401icc.82.1429717765157; Wed, 22 Apr 2015 08:49:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.144.38 with HTTP; Wed, 22 Apr 2015 08:49:04 -0700 (PDT) In-Reply-To: <1429709445544-5766160.post@n5.nabble.com> References: <1429622950073-5766108.post@n5.nabble.com> <1429709445544-5766160.post@n5.nabble.com> From: Claus Ibsen Date: Wed, 22 Apr 2015 17:49:04 +0200 Message-ID: Subject: Re: Reading a file using camel stream component To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Hi Yeah not sure how easy it is to add logic to detect when a file rollover. Maybe it reads the first N bytes and make a hash or something. And then if the retry do the same, and when the hash no longer matches then its assume a new file that was rolled over, and it beings emit the data. On Wed, Apr 22, 2015 at 3:30 PM, Akram wrote: > I tried it, but retry was keep on reading the same file again and again > before the new file gets generated. > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Reading-a-file-using-camel-stream-component-tp5766108p5766160.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 hawtio: http://hawt.io/ fabric8: http://fabric8.io/