camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pbToe <>
Subject Re: autostart routes not working correctly.
Date Fri, 13 Jun 2014 07:57:51 GMT
I am using spring DSL with the following set.

	<camelContext id="testIt" xmlns=""

There are two ways I have used for starting and stop, because I have been
playing around with it.  I not to what the difference is between them they
should give me the same result of 1 route but obviously not!

For stop I do the following
for (Route route : camelContext.getRoutes()) {

For start I do this
for(RouteDefinition routeDefinition : camelContext.getRouteDefinitions()) {

Can someone please explain why I am getting 2 routes!

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message