camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Dynamic reloading of routes with SpringXML
Date Wed, 23 Feb 2011 13:12:49 GMT

See this example

And CamelContext have API for starting/stopping/removing routes at runtime

On Wed, Feb 23, 2011 at 2:01 PM, Arno Schatz <> wrote:
> Hi,
> For productive use of Camel we would need to add, remove reload routes at runtime without
interuption to other routes.
> Most routes are defined using SpringXML. I have seen the smples of starting, stop and
packageScan, but it seems they are
> all for Java DSL. I have not seen a way to dynamically load Spring DSL routes.
> What I have come up with so far is to have each route in a different camel context and
load these multiple camel context
> at runtime. I thought may be its a good idea to group a route and dependent beans into
one camel context (and one Spring
> XML), because shutdown / restarting a route with its dependencies in productive enviroment
may not be trivial.
> Is this the way of doing it?  Is there a better way?
> thanks for your advice,
>   Arno

Claus Ibsen
Twitter: davsclaus
Author of Camel in Action:

View raw message