activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r533813 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/PollingConsumer.java
Date Mon, 30 Apr 2007 17:44:03 GMT
Author: jstrachan
Date: Mon Apr 30 10:44:02 2007
New Revision: 533813

URL: http://svn.apache.org/viewvc?view=rev&rev=533813
Log:
make sure we fully start the polling component before we can trigger any polls

Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/PollingConsumer.java

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/PollingConsumer.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/PollingConsumer.java?view=diff&rev=533813&r1=533812&r2=533813
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/PollingConsumer.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/PollingConsumer.java
Mon Apr 30 10:44:02 2007
@@ -109,13 +109,13 @@
 
     @Override
     protected void doStart() throws Exception {
+        super.doStart();
         if (isUseFixedDelay()) {
             future = executor.scheduleWithFixedDelay(this, getInitialDelay(), getDelay(),
getTimeUnit());
         }
         else {
             future = executor.scheduleAtFixedRate(this, getInitialDelay(), getDelay(), getTimeUnit());
         }
-        super.doStart();
     }
 
     @Override



Mime
View raw message