Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 25661 invoked from network); 15 Sep 2010 09:59:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Sep 2010 09:59:03 -0000 Received: (qmail 19484 invoked by uid 500); 15 Sep 2010 09:59:03 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 19178 invoked by uid 500); 15 Sep 2010 09:59:00 -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 19170 invoked by uid 99); 15 Sep 2010 09:58:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Sep 2010 09:58:59 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [129.183.4.8] (HELO ecfrec.frec.bull.fr) (129.183.4.8) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Sep 2010 09:58:53 +0000 Received: from cyclope.frec.bull.fr (cyclope.frec.bull.fr [129.183.4.9]) by ecfrec.frec.bull.fr (Postfix) with ESMTP id 4D49F6F5F9 for ; Wed, 15 Sep 2010 11:58:24 +0200 (CEST) Received: from [127.0.0.1] (b015132.frec.bull.fr [129.183.141.161]) by cyclope.frec.bull.fr (Postfix) with ESMTP id 8DCB62728D for ; Wed, 15 Sep 2010 11:58:21 +0200 (CEST) Message-ID: <4C9098C3.2040205@bull.net> Date: Wed, 15 Sep 2010 11:58:27 +0200 From: "S. Ali Tokmen" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100825 Thunderbird/3.1.3 MIME-Version: 1.0 To: users@camel.apache.org Subject: The delay option seems not to be working in CAMEL Java DSL mode Content-Type: multipart/alternative; boundary="------------000909000905080808040601" --------------000909000905080808040601 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hello The route I'm currently interested in uses CAMEL in Java DSL mode. It basically copies files from an FTP server, hence the from clause: ftp://camel@production26:21/ftproot/camel?password=camel&delay=60000&binary=true&disconnect=true As a result, the delay is supposed to be 60 seconds. But here's what I get in the logs: 2010-09-15 09:22:09,008 INFO (RemoteFileConsumer) - Connected and logged in to: ftp://camel@production26:21:21 2010-09-15 09:22:09,508 INFO (RemoteFileConsumer) - Connected and logged in to: ftp://camel@production26:21:21 2010-09-15 09:22:10,004 INFO (RemoteFileConsumer) - Connected and logged in to: ftp://camel@production26:21:21 2010-09-15 09:22:10,714 INFO (RemoteFileConsumer) - Connected and logged in to: ftp://camel@production26:21:21 Which indicates that CAMEL about twice a second. After looking to it with a debugger, I've seen that this delay comes from the default value of ScheduledPollConsumer.delay (500). I therefore see that the "delay" attribute of the consumer is not changed no matter what delay I put in my URL. Is this an expected behaviour? Cheers -- S. Ali Tokmen savas-ali.tokmen@bull.net Office: +33 4 76 29 76 19 GSM: +33 66 43 00 555 Bull, Architect of an Open World TM http://www.bull.com --------------000909000905080808040601--