Hi Zoltan, You can use splitter with conjunction with the Control Bus [1] to achieve this.
from("direct:splitAndStart"). split().body().setHeader("routeId", body() ).to("controlbus:route?&action=start"); from("direct:startLevel1"). setBody().constant(Arrays.asList("route1", "route2")). to("direct:splitAndStart"); from("direct:startLevel2"). to("direct:startLevel1"). setBody().constant(Arrays.asList("route3", "route4")). to("direct:splitAndStart"); Cheers! [1] http://camel.apache.org/controlbus.html wt., 26.05.2015 o 02:24 użytkownik Zoltan Farkas <zolyfar...@yahoo.com.invalid> napisał: > I want to be able in implement similar functionality like unix run levels > .. > > level 1 - start level 1 set of routes > level 2 - run all from level 1 + level 2 specific routes. > ... > > I want to be able to go from level 1 -> level 2 and vice versa. > (starting/stopping the necessary routes..) > > What would be the best way to implement this? Currently I am leaning > towards using different camel contexts for each level… > > Any help appreciated > > thank you > > —Z