camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1412495 - in /camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply: PersistentQueueReplyManager.java TemporaryQueueReplyManager.java
Date Thu, 22 Nov 2012 10:59:11 GMT
Author: davsclaus
Date: Thu Nov 22 10:59:10 2012
New Revision: 1412495

URL: http://svn.apache.org/viewvc?rev=1412495&view=rev
Log:
CAMEL-5809: camel-jms request/reply over JMS allow to use concurrentConsumers/maxConcurrentConsumers
options.

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

Modified: camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/PersistentQueueReplyManager.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/PersistentQueueReplyManager.java?rev=1412495&r1=1412494&r2=1412495&view=diff
==============================================================================
--- camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/PersistentQueueReplyManager.java
(original)
+++ camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/PersistentQueueReplyManager.java
Thu Nov 22 10:59:10 2012
@@ -171,6 +171,9 @@ public class PersistentQueueReplyManager
         answer.setDestinationName(endpoint.getReplyTo());
 
         answer.setAutoStartup(true);
+        if (endpoint.getMaxMessagesPerTask() >= 0) {
+            answer.setMaxMessagesPerTask(endpoint.getMaxMessagesPerTask());
+        }
         answer.setMessageListener(this);
         answer.setPubSubDomain(false);
         answer.setSubscriptionDurable(false);

Modified: camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/TemporaryQueueReplyManager.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/TemporaryQueueReplyManager.java?rev=1412495&r1=1412494&r2=1412495&view=diff
==============================================================================
--- camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/TemporaryQueueReplyManager.java
(original)
+++ camel/trunk/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/TemporaryQueueReplyManager.java
Thu Nov 22 10:59:10 2012
@@ -99,6 +99,9 @@ public class TemporaryQueueReplyManager 
             }
         });
         answer.setAutoStartup(true);
+        if (endpoint.getMaxMessagesPerTask() >= 0) {
+            answer.setMaxMessagesPerTask(endpoint.getMaxMessagesPerTask());
+        }
         answer.setMessageListener(this);
         answer.setPubSubDomain(false);
         answer.setSubscriptionDurable(false);



Mime
View raw message