[ https://issues.apache.org/jira/browse/CAMEL-11583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16114540#comment-16114540 ]
Luca Burgazzoli edited comment on CAMEL-11583 at 8/4/17 3:48 PM: ----------------------------------------------------------------- Assuming we have the following routes: {code:java} from("timer:foo?period=5s") .id("foo") .startupOrder(2) .log("From timer (foo) ..."); from("timer:bar?period=5s") .id("bar") .startupOrder(1) .log("From timer (bar) ..."); from("undertow:http://localhost:9011") .id("undertow") .log("From undertow ..."); from("undertow:http://localhost:9012") .id("undertow-2") .autoStartup(false) .log("From undertow ..."); {code} camel will print: {code} Total 4 routes, of which 0 are started and 3 are managed by the route controller (org.apache.camel.impl.SupervisingRouteController) {code} If the route controller is enabled and {code} Total 4 routes, of which 3 are started {code} if not. was (Author: lb): Assuming we have the following routes: {code:java} from("timer:foo?period=5s") .id("foo") .startupOrder(2) .log("From timer (foo) ..."); from("timer:bar?period=5s") .id("bar") .startupOrder(1) .log("From timer (bar) ..."); from("undertow:http://localhost:9011") .id("undertow") .log("From undertow ..."); from("undertow:http://localhost:9012") .id("undertow-2") .autoStartup(false) .log("From undertow ..."); {code} camel will print: {code} Total 4 routes, of which 0 are started and 3 are managed by the route controller (org.apache.camel.impl.SupervisingRouteController) {code} If the route controller is enabled and {code} Total 4 routes, of which 3 are started {code] if not. > SupervisingRouteController should honor if a route was explicit set to > autoStartup=false > ---------------------------------------------------------------------------------------- > > Key: CAMEL-11583 > URL: https://issues.apache.org/jira/browse/CAMEL-11583 > Project: Camel > Issue Type: Improvement > Components: camel-core > Reporter: Claus Ibsen > Assignee: Luca Burgazzoli > Labels: route-controller > Fix For: 2.20.0 > > > If the end user explict configure a route to not auto startup, then the route > should not be under supervision. > eg that route is only intended to be started manually by the end user. > Currently I think the SupervisingRouteController will set all routes to auto > startup false, and then start all of them. So it need to check the existing > route configuration and if its autoStartup=false, then skip that route. > We should do some kind of summary logging at INFO level when we have detected > this and tell the user about it > Maybe we should do a better summary INFO than we have today with > {code} > Total 3 routes, of which 0 are started > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)