synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From u...@apache.org
Subject svn commit: r605087 - /webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartz.java
Date Tue, 18 Dec 2007 05:03:15 GMT
Author: upul
Date: Mon Dec 17 21:03:15 2007
New Revision: 605087

URL: http://svn.apache.org/viewvc?rev=605087&view=rev
Log:
fixed running more than one task at once

Modified:
    webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartz.java

Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartz.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartz.java?rev=605087&r1=605086&r2=605087&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartz.java
(original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartz.java
Mon Dec 17 21:03:15 2007
@@ -56,6 +56,14 @@
     private static final Log log = LogFactory.getLog(SimpleQuartz.class);
     private static final int THREADPOOLSIZE = 5;
 
+    static {
+      try {
+        DirectSchedulerFactory.getInstance().createVolatileScheduler(THREADPOOLSIZE);
+      } catch (SchedulerException e) {
+        throw new SynapseException("Error initializing scheduler factory", e);
+      }
+    }
+    
     private String cron;
     private int repeatCount = -1;
     private long repeatInterval;
@@ -113,7 +121,6 @@
       
       
         try {
-            DirectSchedulerFactory.getInstance().createVolatileScheduler(THREADPOOLSIZE);
             sch = DirectSchedulerFactory.getInstance().getScheduler();
 
             Trigger trigger = null;



---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


Mime
View raw message