Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B68D7200C34 for ; Mon, 27 Feb 2017 13:56:37 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B523A160B6C; Mon, 27 Feb 2017 12:56:37 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0951B160B60 for ; Mon, 27 Feb 2017 13:56:36 +0100 (CET) Received: (qmail 78630 invoked by uid 500); 27 Feb 2017 12:56:31 -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 78619 invoked by uid 99); 27 Feb 2017 12:56:30 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Feb 2017 12:56:30 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id B8435C0ABA for ; Mon, 27 Feb 2017 12:56:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 5.486 X-Spam-Level: ***** X-Spam-Status: No, score=5.486 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, HTML_MESSAGE=2, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id jnRzdldk5Yca for ; Mon, 27 Feb 2017 12:56:28 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id F16BD5FB0B for ; Mon, 27 Feb 2017 12:56:27 +0000 (UTC) Received: from static.162.255.23.22.macminivault.com (unknown [162.255.23.22]) by mbob.nabble.com (Postfix) with ESMTP id 081D93DB08F8 for ; Mon, 27 Feb 2017 04:34:14 -0800 (PST) Date: Mon, 27 Feb 2017 05:56:27 -0700 (MST) From: souciance To: users@camel.apache.org Message-ID: In-Reply-To: <1488199895990-5794516.post@n5.nabble.com> References: <1488199895990-5794516.post@n5.nabble.com> Subject: Re: Stop polling the input folder after the scheduled route is completed MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_162437_1323985964.1488200187445" archived-at: Mon, 27 Feb 2017 12:56:37 -0000 ------=_Part_162437_1323985964.1488200187445 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Did you try to stop the route after polling was done? How does your route code look like? On Mon, Feb 27, 2017 at 1:51 PM, Amruta Jawlekar [via Camel] < ml-node+s465427n5794516h59@n5.nabble.com> wrote: > Hi, > > I am working on a project which polls to one input folder, processes it > and keeps the processed files to output folder. The input files are then > moved to Backup folder. > Now I want to keep this on scheduler twice a day at fixed time. I did that > using CronScheduledRoutePolicy. Below is the code. > The job runs on the scheduled hour, once all files are processed if I keep > another files to same input folders it processes those too. Cannot use > routeEndTime because I am not sure how much time it will take to process > all files. > > How do I ask Camel to stop polling to input folder until the next > scheduled time. I want the route to run at 12pm noon and 6pm, and not > continuously poll the input folder. > > > > > > xmlns="http://camel.apache.org/schema/spring"> > autoStartup="false"> > .......... > > > I tried using Quartz but was not successful. If it is possible using > Quartz and there is any link for Quartz example with spring camel context, > then please let me know. > > Thanks, > Amruta > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > http://camel.465427.n5.nabble.com/Stop-polling-the-input- > folder-after-the-scheduled-route-is-completed-tp5794516.html > To start a new topic under Camel - Users, email > ml-node+s465427n465428h31@n5.nabble.com > To unsubscribe from Camel - Users, click here > > . > NAML > > -- View this message in context: http://camel.465427.n5.nabble.com/Stop-polling-the-input-folder-after-the-scheduled-route-is-completed-tp5794516p5794517.html Sent from the Camel - Users mailing list archive at Nabble.com. ------=_Part_162437_1323985964.1488200187445--