Could you try to split up your route into two and test whether this works?

<camel:route id="defaultRoute">
    <camel:from uri="bean://myBean?method=garryProducer" />
    <camel:split>
        <camel:method bean="myBean" method="split" />
        <to uri="direct:sub" />
    </camel:split>
</camel:route>

<camel:route id="subRoute">
    <camel:from uri="direct:sub" />
    <camel:throttle id="defaultThrottler" timePeriodMillis="1000" >
        <camel:header>garryHeader</camel:header>
        <camel:to uri="bean://myBean?method=garryConsumer" />
    </camel:throttle>
</camel:route>

May be it's an issue when we define a throttler inside a splitter...

Best,
Christian


On Fri, Mar 23, 2012 at 2:45 PM, garrydias <garryd...@gmail.com> wrote:

> thanx Christian
>
> this is my spring xml:
>
> http://camel.465427.n5.nabble.com/file/n5589498/throttler-test-context.xml
> throttler-test-context.xml
>
> About your tests, I couldn´t execute it because the some imports in your
> source code make reference to older camel version. An example, the
> org.apache.camel.processor.ThrottlerTest class does not exist in Camel 2.9.
>
> thanx again
>
>
> regards
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Throttling-maximumRequestsPerPeriod-problem-tp5586898p5589498.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to