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: Detect is a route is started
Date Thu, 25 Apr 2013 08:57:10 GMT
Hi

There is a getRouteStatus method
http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/CamelContext.html#getRouteStatus(java.lang.String)

On Thu, Apr 25, 2013 at 10:48 AM, Jean Francois LE BESCONT
<jflebescont@gmail.com> wrote:
> Hey Folks !
>
> Just a little post to say that it sound tricky to detect if a route is
> started or not, the only way I have found is to do :
>
>         Route route = camelContext.getRoute(...);
> boolean isRouteStarted =
> ((org.apache.camel.support.ServiceSupport)route).isStarted();
>
> Bye
>
> Jeff



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message