camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r989637 - /camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/CorrelationMap.java
Date Thu, 26 Aug 2010 12:19:37 GMT
Author: davsclaus
Date: Thu Aug 26 12:19:37 2010
New Revision: 989637

URL: http://svn.apache.org/viewvc?rev=989637&view=rev
Log:
CAMEL-3084: Fixed not using requestTimeout when using request/reply over JMS.

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

Modified: camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/CorrelationMap.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/CorrelationMap.java?rev=989637&r1=989636&r2=989637&view=diff
==============================================================================
--- camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/CorrelationMap.java
(original)
+++ camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/CorrelationMap.java
Thu Aug 26 12:19:37 2010
@@ -36,4 +36,13 @@ public class CorrelationMap extends Defa
         return true;
     }
 
+    @Override
+    public void put(String key, ReplyHandler value, long timeoutMillis) {
+        if (timeoutMillis <= 0) {
+            // no timeout (must use Integer.MAX_VALUE)
+            super.put(key, value, Integer.MAX_VALUE);
+        } else {
+            super.put(key, value, timeoutMillis);
+        }
+    }
 }



Mime
View raw message