camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r831880 - in /camel/trunk/examples/camel-example-route-throttling: README.txt src/main/resources/META-INF/spring/camel-server.xml
Date Mon, 02 Nov 2009 12:43:52 GMT
Author: davsclaus
Date: Mon Nov  2 12:43:51 2009
New Revision: 831880

URL: http://svn.apache.org/viewvc?rev=831880&view=rev
Log:
CAMEL-1048: added wiki snippet

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

Modified: camel/trunk/examples/camel-example-route-throttling/README.txt
URL: http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-route-throttling/README.txt?rev=831880&r1=831879&r2=831880&view=diff
==============================================================================
--- camel/trunk/examples/camel-example-route-throttling/README.txt (original)
+++ camel/trunk/examples/camel-example-route-throttling/README.txt Mon Nov  2 12:43:51 2009
@@ -17,7 +17,7 @@
 you should observe that the JMS route and the SEDA route completes nearly in sync.
 
 For the latest & greatest documentation on how to use this example please see:
-  http://camel.apache.org/examples.html
+  http://camel.apache.org/route-throttling-example.html
 
 You will need to compile this example first:
   mvn compile

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=831880&r1=831879&r2=831880&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
Mon Nov  2 12:43:51 2009
@@ -40,12 +40,20 @@
         <property name="acceptMessagesWhileStopping" value="true"/>
     </bean>
 
+    <!-- START SNIPPET: e1 -->
     <bean id="myPolicy" class="org.apache.camel.impl.ThrottlingRoutePolicy">
+        <!-- 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
+             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 -->
         <property name="loggingLevel" value="WARN"/>
     </bean>
+    <!-- END SNIPPET: e1 -->
 
     <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
 



Mime
View raw message