camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: starting, stopping, creating & editing routes at runtime now works - CAMEL-1004
Date Thu, 26 Feb 2009 06:01:39 GMT
On Wed, Feb 25, 2009 at 7:29 PM, James Strachan
<> wrote:
> Here's a test case to show the kind of thing we can now do...
> there's now a start/stop route method on CamelContext where you can
> start or stop individual routes using the route definition (which lets
> you also mutate routes). Routes with the same ID replace old ones,
> otherwise its a new route. So you could get a route definition, clear
> the ID and start it to clone a route.
> So far it looks like most of the tests still pass. Do folks think the
> API seems OK to them? I've tried to hide as much of the internal
> details as possible - so the API is primarily dealing with the route
> definitions (RouteType classes)

Looks great. We can always ponder with the API later.
Maybe from a maintenance point of view you would like to be able to
stop routes based on the id alone,
so you from a web console can stop / start routes and submit the id
from the web form.

I assume each route has a unique id that can be used
for higher level manipulation from scripts (yeah there is a id on the
route type and route service as well)?
So you can eg. submit a route to be replace an existing route from a
script and pass in the route id?

And a feature I would love in the future was to be able to pause
individual consumers.
eg. pause a file consumer temporary to pile up files and you can
tamper with the routes, or you were told
to pause it since some back end system is not available. So you can
say that if you could
pause routes then that would be lovely as it can be used as well.

However we do have support for routes with multiple inputs (eg
multiple from -> same route) so if you pause
the route you pause them all, but I guess that could make sense.

> --
> James
> -------
> Open Source Integration

Claus Ibsen
Apache Camel Committer

Open Source Integration:

View raw message