Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 14704 invoked from network); 10 Nov 2004 09:54:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 10 Nov 2004 09:54:29 -0000 Received: (qmail 27923 invoked by uid 500); 10 Nov 2004 09:54:25 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 27894 invoked by uid 500); 10 Nov 2004 09:54:24 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 27880 invoked by uid 99); 10 Nov 2004 09:54:24 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [195.216.81.146] (HELO helios.otego.com) (195.216.81.146) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 10 Nov 2004 01:54:24 -0800 Received: (qmail 15716 invoked from network); 10 Nov 2004 09:54:21 -0000 Received: from helios.otego.com (HELO localhost) (192.168.222.204) by helios.otego.com with SMTP; 10 Nov 2004 09:54:21 -0000 Date: Wed, 10 Nov 2004 09:54:19 +0100 (CET) From: Giacomo Pati X-X-Sender: giacomo@lapgp.otego.com To: dev@cocoon.apache.org Subject: Re: svn commit: rev 57089 - cocoon/branches/BRANCH_2_1_X/src/blocks/cron/java/org/apache/cocoon/components/cron In-Reply-To: <4191871E.3030902@reverycodes.com> Message-ID: References: <20041109195345.51126.qmail@minotaur.apache.org> <4191871E.3030902@reverycodes.com> X-GPG-FINGRPRINT: D216 25E0 084A 9090 9BF4 1EC0 3710 05D8 BA4A 9F94 X-GPG-PUBLIC_KEY: http://pks.gpg.cz:11371/pks/lookup?op=get&search=0x371005D8BA4A9F94 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Tue, 9 Nov 2004, Vadim Gritsenko wrote: > giacomo@apache.org wrote: >> Author: giacomo >> Date: Tue Nov 9 11:53:45 2004 >> New Revision: 57089 >> >> Modified: >> cocoon/branches/BRANCH_2_1_X/src/blocks/cron/java/org/apache/cocoon/components/cron/QuartzJobScheduler.java >> Log: >> try to fix reload problem >> >> Modified: >> cocoon/branches/BRANCH_2_1_X/src/blocks/cron/java/org/apache/cocoon/components/cron/QuartzJobScheduler.java >> ============================================================================== >> --- >> cocoon/branches/BRANCH_2_1_X/src/blocks/cron/java/org/apache/cocoon/components/cron/QuartzJobScheduler.java >> (original) >> +++ >> cocoon/branches/BRANCH_2_1_X/src/blocks/cron/java/org/apache/cocoon/components/cron/QuartzJobScheduler.java >> Tue Nov 9 11:53:45 2004 >> @@ -316,10 +316,10 @@ >> // we cannot create the same scheduler again >> final String runID = new Date().toString().replace(' ', >> '_'); >> final QuartzThreadPool pool = >> createThreadPool(this.config.getChild("thread-pool")); >> - final JobStore store = >> createJobStore(DEFAULT_QUARTZ_SCHEDULER_NAME, runID, >> this.config.getChild("store")); >> - >> DirectSchedulerFactory.getInstance().createScheduler(DEFAULT_QUARTZ_SCHEDULER_NAME, >> runID, pool, store); >> + final JobStore store = >> createJobStore(DEFAULT_QUARTZ_SCHEDULER_NAME + runID, runID, >> this.config.getChild("store")); >> + >> DirectSchedulerFactory.getInstance().createScheduler(DEFAULT_QUARTZ_SCHEDULER_NAME >> + runID, runID, pool, store); > > IMHO, it should cause problem with JDBC job store, and with clustered Cocoon > servers also. Point of JDBC store is to coordinate cron jobs between several > Cocoon instances. Uh, sorry. I'll reverse it. The problem I've tried to fix is the occassionally reloading of cocoon from the container will kill the cron scheduler. -- Giacomo Pati Otego AG, Switzerland - http://www.otego.com Orixo, the XML business alliance - http://www.orixo.com