camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shirazi ...@farhad.eu>
Subject ThrottlingInflightRoutePolicy does not take effect in DSL
Date Sun, 29 Nov 2009 08:32:50 GMT

Hi,
Please have a look at the following route def.:

RouteBuilder:
==========

fromF("file:///tmp/start").routeId("test.route.1").routePolicyRef("myPolicy").
	multicast().delay(1000).
		to("file:///tmp/proceed1").
		to("file:///tmp/proceed2");
		

from("file:///tmp/proceed2").routeId("test.route.2").routePolicyRef("myPolicy").delay(20000).
	to("file:///tmp/archive");

applicationContext.xml
==========
    <bean id="myPolicy"
class="org.apache.camel.impl.ThrottlingInflightRoutePolicy">
        <property name="scope" value="Context"/>
        <property name="maxInflightExchanges" value="3"/>
        <property name="resumePercentOfMax" value="40"/>
        <property name="loggingLevel" value="WARN"/>
    </bean>

The throttling policy does not take effect, since files keep coming into the
tmp/proceed dirs, regardless 
the policy that says no more than 3 files at a time. Now I am clearly doing
something wrong, but according 
to the doc. what I have here should be enough.

Regards, 
Farhad S.
-- 
View this message in context: http://old.nabble.com/ThrottlingInflightRoutePolicy-does-not-take-effect-in-DSL-tp26560144p26560144.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message