cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: svn commit: rev 57089 - cocoon/branches/BRANCH_2_1_X/src/blocks/cron/java/org/apache/cocoon/components/cron
Date Wed, 10 Nov 2004 03:12:30 GMT
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.

Vadim

Mime
View raw message