camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1426748 - /camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsPollingConsumer.java
Date Sat, 29 Dec 2012 11:51:11 GMT
Author: davsclaus
Date: Sat Dec 29 11:51:11 2012
New Revision: 1426748

URL: http://svn.apache.org/viewvc?rev=1426748&view=rev
Log:
CAMEL-5917: Fixed jms polling consumer to use correct timeout values for receive and receive
no wait.

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=1426748&r1=1426747&r2=1426748&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 Dec 29 11:51:11 2012
@@ -43,11 +43,11 @@ public class JmsPollingConsumer extends 
     }
 
     public Exchange receiveNoWait() {
-        return receive(1);
+        return receive(JmsTemplate.RECEIVE_TIMEOUT_NO_WAIT);
     }
 
     public Exchange receive() {
-        return receive(0L);
+        return receive(JmsTemplate.RECEIVE_TIMEOUT_INDEFINITE_WAIT);
     }
 
     public Exchange receive(long timeout) {



Mime
View raw message