camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r759453 - /camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsPollingConsumer.java
Date Sat, 28 Mar 2009 10:57:13 GMT
Author: davsclaus
Date: Sat Mar 28 10:57:12 2009
New Revision: 759453

URL: http://svn.apache.org/viewvc?rev=759453&view=rev
Log:
CAMEL-1497: JmsPollingConsumer receive not working correctly.

Modified:
    camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsPollingConsumer.java

Modified: camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsPollingConsumer.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsPollingConsumer.java?rev=759453&r1=759452&r2=759453&view=diff
==============================================================================
--- camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsPollingConsumer.java
(original)
+++ camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsPollingConsumer.java
Sat Mar 28 10:57:12 2009
@@ -41,11 +41,11 @@
     }
 
     public Exchange receiveNoWait() {
-        return receive(0);
+        return receive(JmsTemplate.RECEIVE_TIMEOUT_NO_WAIT);
     }
 
     public Exchange receive() {
-        return receive(-1);
+        return receive(JmsTemplate.RECEIVE_TIMEOUT_INDEFINITE_WAIT);
     }
 
     public Exchange receive(long timeout) {



Mime
View raw message