camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Strachan <james.strac...@gmail.com>
Subject Re: How to get route information
Date Thu, 28 Oct 2010 14:22:57 GMT
On 28 October 2010 15:17, Ashwin Karpe <akarpe@fusesource.com> wrote:
>
> Hi,
>
> In any given processor, or any code that has access to a camel context, you
> could do the following
>
>       List<Route> routes = getCamelContext().getRoutes;

Or there's:

  List<RouteDefinition> definitions = getCamelContext().getRouteDefinitions()

if you want to look at the definitions (kinda like the XML DSL)

-- 
James
-------
FuseSource
Email: james@fusesource.com
Web: http://fusesource.com
Twitter: jstrachan
Blog: http://macstrac.blogspot.com/

Open Source Integration

Mime
View raw message