Hi,
did you see, that the syntax changed with camel 2.8:
see: http://camel.apache.org/throttler.html
<throttle timePeriodMillis="10000">
<constant>3</constant>
<to uri="mock:result"/>
</throttle>
regards, Marco
Am 22.03.2012 16:37, schrieb garrydias:
Hi!
I´m trying to use Throttle in my xml CamelContext under 2.9 Camel version,
but when I set the /maximumRequestsPerPeriod/ property my compilation fails
displaying this message:
*cvc-complex-type.3.2.2: Attribute 'maximumRequestsPerPeriod' is not allowed
to appear in element
'camel:throttle'.*
if I delete the /maximumRequestsPerPeriod/ property my route fails at
runtime displaying this message:
*Caused by: java.lang.IllegalStateException: The maximumRequestsPerPeriod
must be a positive number, was: 0*
I can´t solve this problem.
Please. Help.
Thanx
--
View this message in context:
http://camel.465427.n5.nabble.com/Throttling-maximumRequestsPerPeriod-problem-tp5586898p5586898.html
Sent from the Camel - Users mailing list archive at Nabble.com.