camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Way to determine if Route is running or not
Date Thu, 04 Apr 2013 06:32:02 GMT

Yes there is an org.apache.camel.spi.InflightRepository which you can
get from CamelContext. There is a size method to return if there is
any inflight messages for the given route id.

Also form JMX you can see these numbers on the route mbeans.

On Wed, Apr 3, 2013 at 10:21 PM, vishal1981
<> wrote:
> Hi,
> Is there a way to query the CamelContext to find out if a route is running
> or not, as in, if a route is currently processing an exchange or a consumer
> endpoint of the route such as FTP or File is in the process of retrieving a
> file.
> I modify the routes with certain settings from the UI. Hence I need to know
> if a route is running or not before I tear it down and recreate it with new
> settings.
> thanks in advance,
> -v-
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
FuseSource is now part of Red Hat
Twitter: davsclaus
Author of Camel in Action:

View raw message