Hi You can use .description to set a route description. But there is no key/value map that you can associate to a route.
You could also look at startup order and assign 1xx for level 1, 2xx for level 2, etc. http://camel.apache.org/configuring-route-startup-ordering-and-autostartup.html On Tue, May 26, 2015 at 9:10 PM, Zoltan Farkas <zolyfar...@yahoo.com.invalid> wrote: > Thank you, > > is there a way to attach some metadata(attributes) to a camel route? > > > —Z > > > >> On May 26, 2015, at 3:48 AM, Henryk Konsek <hekon...@gmail.com> wrote: >> >> 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 > -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/