camel-users mailing list archives

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

See this example
http://camel.apache.org/loading-routes-from-xml-files.html

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

On Wed, Feb 23, 2011 at 2:01 PM, Arno Schatz <gare@gmx.net> 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
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message