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 283BA200C60 for ; Mon, 24 Apr 2017 14:59:57 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 26D46160BA5; Mon, 24 Apr 2017 12:59:57 +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 6E6D1160B99 for ; Mon, 24 Apr 2017 14:59:56 +0200 (CEST) Received: (qmail 98952 invoked by uid 500); 24 Apr 2017 12:59:55 -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 98935 invoked by uid 99); 24 Apr 2017 12:59:55 -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, 24 Apr 2017 12:59:55 +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 A28FBC028B for ; Mon, 24 Apr 2017 12:59:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.192 X-Spam-Level: * X-Spam-Status: No, score=1.192 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 BslO3zMkcZut for ; Mon, 24 Apr 2017 12:59:51 +0000 (UTC) Received: from mail-qk0-f169.google.com (mail-qk0-f169.google.com [209.85.220.169]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id CBE255FCAC for ; Mon, 24 Apr 2017 12:59:50 +0000 (UTC) Received: by mail-qk0-f169.google.com with SMTP id h123so30538177qke.0 for ; Mon, 24 Apr 2017 05:59:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=k3BnW9qzMkItU5sUzJUs5boJacRZYgwaAaSOdTTpu14=; b=XS3+aEA+2E8ESZmEyxBjqpUuYuGB0/fGtLAgJewU6oMk658z78UbV9U7cYNXJmbZaU iM+FKiVyBv4WIJqGwBUuLv/3LVoS2npbX0arqHYTR3rNr1/F2JmLpeABB3iKEni5L0hM 9DCULebTrVQ0T1DXReUqOq5EifDSEhniB7mkyV6hSYcHkJiEKwTPwQ8cWzoYd/1IHRB2 Mr5ouvrfBFsxOsFtS1P2NQ36y0BANxk+VpH42tcSXgEH1+er7ZOgCFnWBOskAsvqdNlO s4LDQMSiYK8dBUxV8PYjRDYbNQAV5Qx55GhQzgikPvI1T52AKp/+wt9/FyHFvT2v87Qj TCAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=k3BnW9qzMkItU5sUzJUs5boJacRZYgwaAaSOdTTpu14=; b=Cj9SyqsNH2+Uem4PCzKnJvfgNRB8TgEw9ChW3s0GpqE+g41YZ8Tp+FdOVeQR6DEqfk TllBLRb6l4mWLbhifzkvUaIYLX15lQljV2IjMycn573aBZyzNwjt9EGF5F67gOs75Mb7 sFqgiT9Lu+Dn3KhY2TbDYA0FU2z5sSr9hfED86zU98l9NaPJvqdK61OcUMJ0mG++pek+ 4Ok6jyEOpssjkUqbDZewQQuP8L1WnfG8fanUZIkV7v9Q+m8WcU7JzR/yvbZF6H1SRPmt CiFGuTSkbeY9SrO7AD+p2i9FfH35ExxoWD/oY6YGVLBcacVYeELm9JTy0CH0hR/lBGoN AQSQ== X-Gm-Message-State: AN3rC/6aKLDdw7d4fT2hTQGC/hrK5jCije4TwSzYk77TG9k5dxtc2oqm 9El6kbZtOGwg80ZgX3rN7MiEOdq4T7TD X-Received: by 10.55.54.202 with SMTP id d193mr2947893qka.160.1493038790366; Mon, 24 Apr 2017 05:59:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.50.39 with HTTP; Mon, 24 Apr 2017 05:59:29 -0700 (PDT) In-Reply-To: <1493038395697-5798192.post@n5.nabble.com> References: <1493038395697-5798192.post@n5.nabble.com> From: Claus Ibsen Date: Mon, 24 Apr 2017 14:59:29 +0200 Message-ID: Subject: Re: QuartzComponent startDelayedSeconds bug To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 archived-at: Mon, 24 Apr 2017 12:59:57 -0000 Hi That is not the intention, its a global option you set on the component level .. ideally. And if you have a single endpoint etc you can set it there. You cannot have different started delayed, as its for starting the quartz scheduler On Mon, Apr 24, 2017 at 2:53 PM, dancerjohn wrote: > I believe there is a bug in the QuartzComponent WRT startDelayedSeconds. I am > starting here instead of creating a ticket per the request on the forum. > This is how to demonstrate the issue: > > create route with start delay: > from("quartz2:route1?startDelaySeconds=25&trigger.repeatInterval=500").... > > create another route with NO start delay > from("quartz2:route2?trigger.repeatInterval=500").... > > Behavior is that route2 will have a start delay if it is created AFTER > route1 but NOT have a start delay if it is created BEFORE route1. This is > because the QuartzComponent is using a field for the startDelaySeconds and > not resetting it to null of the URI parameters to not have a > startDelaySeconds set. > > protected Endpoint More ...createEndpoint(String uri, String remaining, > Map parameters) throws Exception { > // Get couple of scheduler settings > Integer startDelayedSeconds = getAndRemoveParameter(parameters, > "startDelayedSeconds", Integer.class); > if (startDelayedSeconds != null) { > .............. this.startDelayedSeconds = > startDelayedSeconds; > > > So only if the variable "startDelayedSeconds" is not null will the > "this.startDelayedSeconds" be reset to the value desired by the URI. > > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/QuartzComponent-startDelayedSeconds-bug-tp5798192.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2