camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1425863 - /camel/trunk/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/tx/TransactedConsumerSupport.java
Date Wed, 26 Dec 2012 09:22:43 GMT
Author: davsclaus
Date: Wed Dec 26 09:22:43 2012
New Revision: 1425863

URL: http://svn.apache.org/viewvc?rev=1425863&view=rev
Log:
Speedup test

Modified:
    camel/trunk/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/tx/TransactedConsumerSupport.java

Modified: camel/trunk/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/tx/TransactedConsumerSupport.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/tx/TransactedConsumerSupport.java?rev=1425863&r1=1425862&r2=1425863&view=diff
==============================================================================
--- camel/trunk/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/tx/TransactedConsumerSupport.java
(original)
+++ camel/trunk/components/camel-sjms/src/test/java/org/apache/camel/component/sjms/tx/TransactedConsumerSupport.java
Wed Dec 26 09:22:43 2012
@@ -70,6 +70,12 @@ public abstract class TransactedConsumer
         CamelContext camelContext = super.createCamelContext();
 
         ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(getBrokerUri());
+        // use low redelivery delay to speed
+        connectionFactory.getRedeliveryPolicy().setInitialRedeliveryDelay(100);
+        connectionFactory.getRedeliveryPolicy().setRedeliveryDelay(100);
+        connectionFactory.getRedeliveryPolicy().setUseCollisionAvoidance(false);
+        connectionFactory.getRedeliveryPolicy().setUseExponentialBackOff(false);
+
         SjmsComponent component = new SjmsComponent();
         component.setConnectionFactory(connectionFactory);
         camelContext.addComponent("sjms", component);



Mime
View raw message