camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Problem when "redeploying" routes that uses CronScheduledRoutePolicy
Date Fri, 29 Jun 2012 07:54:25 GMT

Yes this seems like a bug. Please raise a JIRA ticket and attach a patch.

On Wed, Jun 27, 2012 at 4:01 PM, Pontus Ullgren <> wrote:
> Hello,
> We have a application  where we dynamically changes route
> configuration by "redeploying" them.
> This is done using the following steps.
> 1. Stop the route
> 2. Remove the route (and it's endpoints) from the context.
> 3. (Re)add the route to the context using the same name.
> For routes that uses the CronScheduledRoutePolicy the redeploy phase
> failes since there are jobs still registered in quartz.
> I've solved this by adding my own implementation of onRemove method to
> the CronScheduledRoutePolicy and this seems solves this problem.
> Test case and modified version of CronScheduledRoutePolicy can be found here:
> Before I go and report this as a issue in Jira I just wanted to check
> with the list if this is by design and the problem is in the way I'm
> using CronScheduledRoutePolicy ?
> Best regards
> Pontus Ullgren

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

View raw message