Could you please provide the complete route to make sure you didn't use the wrong namespace? The unit test in [1] use this expression [2] and the test succeed.
[1] https://svn.apache.org/repos/asf/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/processor/SpringThrottlerTest.java [2] https://svn.apache.org/repos/asf/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/throttler.xml Best, Christian On Thu, Mar 22, 2012 at 6:06 PM, garrydias <garryd...@gmail.com> wrote: > Yes! > > I´ve tried: > > > *<throttle timePeriodMillis="10000"> > <constant>20</constant> > <to uri="mock:result"/> > </throttle> * > > > and > > > *<throttle timePeriodMillis="10000"> > <header>garryHeader</header> > <to uri="mock:result"/> > </throttle> * > > both are displaying: > /Caused by: java.lang.IllegalStateException: The maximumRequestsPerPeriod > must be a positive number, was: 0/ > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Throttling-maximumRequestsPerPeriod-problem-tp5586898p5587237.html > Sent from the Camel - Users mailing list archive at Nabble.com. >