I define my routes in accordance with information read from a database.

I do not understand why spas you can not do in configue.

I read the startup route definition in the database (init routebuilder)
then I give the hand to "configure" which according to the definition read
built the road.

Must be attentive to your classes of objects.

you can not use the object as it 

I do not know all classes but your Ide can help you

you must also pay attention to optinals end() (on choise when pipeline etc.)


java DSL is a fluent API.
But each method returns a different object and different class. 
for exemple .choice() return a ChoiceDefinition


it is necessary to retrieve the returned object to chain the following
method.

A + JYT



--
View this message in context: 
http://camel.465427.n5.nabble.com/Dynamic-Route-Creation-tp5725835p5725838.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to