camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r832356 - /camel/trunk/examples/camel-example-route-throttling/src/main/resources/META-INF/spring/camel-server.xml
Date Tue, 03 Nov 2009 09:20:32 GMT
Author: davsclaus
Date: Tue Nov  3 09:20:26 2009
New Revision: 832356

URL: http://svn.apache.org/viewvc?rev=832356&view=rev
Log:
Polished example

Modified:
    camel/trunk/examples/camel-example-route-throttling/src/main/resources/META-INF/spring/camel-server.xml

Modified: camel/trunk/examples/camel-example-route-throttling/src/main/resources/META-INF/spring/camel-server.xml
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-route-throttling/src/main/resources/META-INF/spring/camel-server.xml?rev=832356&r1=832355&r2=832356&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-route-throttling/src/main/resources/META-INF/spring/camel-server.xml
(original)
+++ camel/trunk/examples/camel-example-route-throttling/src/main/resources/META-INF/spring/camel-server.xml
Tue Nov  3 09:20:26 2009
@@ -45,9 +45,9 @@
         <!-- define the scope to be context scoped so we measure against total inflight
exchanges
              that means for both route1, route2 and route3 all together -->
         <property name="scope" value="Context"/>
-        <!-- when we hit > 30 inflight exchanges then kick in and suspend the routes
-->
-        <property name="maxInflightExchanges" value="30"/>
-        <!-- when we hit lower than 10% of the max = 3 then kick in and resume the routes
+        <!-- when we hit > 20 inflight exchanges then kick in and suspend the routes
-->
+        <property name="maxInflightExchanges" value="20"/>
+        <!-- when we hit lower than 10% of the max = 2 then kick in and resume the routes
              the default percentage is 70% but in this demo we want a low value -->
         <property name="resumePercentOfMax" value="10"/>
         <!-- output throttling activity at WARN level -->
@@ -57,7 +57,7 @@
 
     <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
 
-        <endpoint uri="seda:inbox?concurrentConsumers=40&amp;size=25000" id="foo"/>
+        <endpoint uri="seda:inbox?concurrentConsumers=25&amp;size=25000" id="foo"/>
 
         <route routePolicyRef="myPolicy">
             <from uri="jms:queue:inbox?concurrentConsumers=100"/>



Mime
View raw message