You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by js...@apache.org on 2007/04/30 19:44:03 UTC

svn commit: r533813 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/impl/PollingConsumer.java

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