Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 5685 invoked from network); 25 Jun 2010 06:33:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Jun 2010 06:33:51 -0000 Received: (qmail 26678 invoked by uid 500); 25 Jun 2010 06:33:51 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 26407 invoked by uid 500); 25 Jun 2010 06:33:47 -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 26398 invoked by uid 99); 25 Jun 2010 06:33:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jun 2010 06:33:46 +0000 X-ASF-Spam-Status: No, hits=-0.9 required=10.0 tests=AWL,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [212.50.160.34] (HELO smtpout.karoo.kcom.com) (212.50.160.34) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jun 2010 06:33:39 +0000 X-IronPort-AV: E=Sophos;i="4.53,478,1272841200"; d="scan'208";a="205528919" Received: from unknown (HELO tardis.spudsoft) ([91.84.217.110]) by smtpout.karoo.kcom.com with ESMTP; 25 Jun 2010 07:33:17 +0100 Received: from slave.spudsoft ([192.168.1.198]) by tardis.spudsoft with esmtp (Exim 4.71) (envelope-from ) id 1OS2TV-0004EY-FN for users@camel.apache.org; Fri, 25 Jun 2010 07:33:17 +0100 Message-ID: <4C244D8D.7030707@spudsoft.co.uk> Date: Fri, 25 Jun 2010 07:32:45 +0100 From: Jim Talbut User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 MIME-Version: 1.0 To: users@camel.apache.org Subject: Re: Clustering with camel-quartz References: <4C03E1E0.2050407@dueppe.com> <4C03E86D.1030406@dueppe.com> <4C077F28.8030006@dueppe.com> <4C081100.2090306@dueppe.com> <4C08F364.3080407@dueppe.com> <4C20C519.7020503@dueppe.com> <4C20DADE.6020509@dueppe.com> <4C2168C5.7080509@gmail.com> <4C2395ED.8040008@dueppe.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 25/06/2010 06:17, Claus Ibsen wrote: > I think the reason is the scheduler is started before the other routes > has been fully started. And quartz starts very quick. > > We could add an option so you can configure a delay option so it can > be started with delay. > It has a startDelayed method: > http://www.quartz-scheduler.org/docs/api/1.8.1/org/quartz/Scheduler.html > > > However a better solution is to offer this as a feature in Camel which > allows component to register callbacks to be invoked when all the > other stuff have been started, so they can start last. > > > I have created a ticket to track that > https://issues.apache.org/activemq/browse/CAMEL-2855 > In my experience* one always needs to use the delay start features of quartz because it always gets going before its dependents. Even if you have a "start last" feature, unless you make it a complex tree of dependencies you are going to face the situation where quartz (a late starter) is dependent on another late starter and you still have the race condition. Also a start-last feature doesn't work when the thing which quartz depends upon is outside of camel. So a start-last feature may be a good idea, but I think camel should probably make the delay start features of quartz available too. Jim * Which is restricted to using clustered quartz (and hence a persistent store for jobs) outside of camel.