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 E328E114F8 for ; Wed, 23 Jul 2014 03:33:48 +0000 (UTC) Received: (qmail 43738 invoked by uid 500); 23 Jul 2014 03:33:48 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 43686 invoked by uid 500); 23 Jul 2014 03:33:48 -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 43673 invoked by uid 99); 23 Jul 2014 03:33:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2014 03:33:47 +0000 X-ASF-Spam-Status: No, hits=3.2 required=5.0 tests=FORGED_YAHOO_RCVD,FREEMAIL_ENVFROM_END_DIGIT,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.26 is neither permitted nor denied by domain of mikes300@yahoo.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2014 03:33:46 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1X9nIu-0007cE-RN for users@camel.apache.org; Tue, 22 Jul 2014 20:33:20 -0700 Date: Tue, 22 Jul 2014 20:33:20 -0700 (PDT) From: mikes300 To: users@camel.apache.org Message-ID: <1406086400837-5754275.post@n5.nabble.com> Subject: Camel Java routes using Timer firing only once MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I can get routes kicked off in Java DSL however the timer routes execute once and only once no matter what. Here is a sample of what I have, very easy/simple. But it just fires once. Successfully, but just once. from("timer://foo?fixedRate=true&period=10000").to("file:target/reports/?fileName=sync.txt"); // from("timer://foo?fixedRate=true&period=10s").bean(new SyncInvoker(), "sayHello()"); // from("timer://foo?fixedRate=true&period=10s").bean(new SyncInvoker(), "sayHello()"); I can get it to work in Spring after it bootstraps its listener context but then I am stuck in Spring and we have a requirement to get out of Spring. Any thoughts out there? Or examples of a full route config in java that utilizes a timer as such? In the end I am using it to manage a polling mechanism against some ActiveMQ queues, then doing stuff with the messages. But I am stuck at step one! Thanks in advance! -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Java-routes-using-Timer-firing-only-once-tp5754275.html Sent from the Camel - Users mailing list archive at Nabble.com.