camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Unable to change throttle with inflight messages
Date Sun, 04 Sep 2011 07:10:01 GMT
You can change the throttler using JMX

On Fri, Sep 2, 2011 at 12:17 AM, awillia <> wrote:
> I would like to be able to change the throttle value dynamically based on a
> some setting.
> I have created a bean that returns this value, so it basically looks like
> this.
> def.throttle(bean("applicationService",
> "getApplicationChannelQuota")).timePeriodMillis(DAY_IN_MILLI_SECONDS)
> We are essentially using it to manage a daily quota of messages, which I
> understand it is not essentialy what it was designed for, but the
> functionality is much the same.
> The problem is that if we hit the limit, the message is throttled and stays
> inflight. This means that we we change the quota to a higher value then that
> message still remains at the lower value and as such the messages are not
> released.
> I have tried to stop and start the route, but this doesnt seem to clear the
> message (should it?), only restarting the whole application seems to clear
> things up.
> Is there a way to do this or would we have to implement our own way of doing
> quotas?
> regards
> Antony
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Twitter: davsclaus, fusenews
Author of Camel in Action:

View raw message