camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r951261 - /camel/trunk/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/QuartzComponent.java
Date Fri, 04 Jun 2010 04:23:32 GMT
Author: davsclaus
Date: Fri Jun  4 04:23:32 2010
New Revision: 951261

URL: http://svn.apache.org/viewvc?rev=951261&view=rev
Log:
CAMEL-2784: Ensure scheduler is started, to avoid issue in OSGi environment and doing aggresivly
bundle refreshes concurrently.

Modified:
    camel/trunk/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/QuartzComponent.java

Modified: camel/trunk/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/QuartzComponent.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/QuartzComponent.java?rev=951261&r1=951260&r2=951261&view=diff
==============================================================================
--- camel/trunk/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/QuartzComponent.java
(original)
+++ camel/trunk/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/QuartzComponent.java
Fri Jun  4 04:23:32 2010
@@ -122,10 +122,6 @@ public class QuartzComponent extends Def
         if (scheduler == null) {
             scheduler = getScheduler();
         }
-        if (!scheduler.isStarted()) {
-            LOG.info("Starting Quartz scheduler: " + scheduler.getSchedulerName());
-            scheduler.start();
-        }
     }
 
     @Override
@@ -179,6 +175,10 @@ public class QuartzComponent extends Def
         if (scheduler == null) {
             scheduler = createScheduler();
         }
+        if (!scheduler.isStarted()) {
+            LOG.info("Starting Quartz scheduler: " + scheduler.getSchedulerName());
+            scheduler.start();
+        }
         return scheduler;
     }
 



Mime
View raw message