i have get some endpoint uri strings,
and some route be defined as
from(endpoint1).to(direct:name)
from(endpoint2).to(direct:name)
...
i have new CamelContext(), and want to add these route to it then start.
how to add dynamic use api, not use like :
context.addRoutes(new RouteBuilder() {
public void configure() throws Exception {
from("endpoint1")
.to("direct:name");
}
});
because i don't know how many route i should add, i must parse my configure
file to add dynamic
--
View this message in context:
http://camel.465427.n5.nabble.com/how-to-add-some-routes-to-CamelContext-by-hand-tp4644999p4644999.html
Sent from the Camel - Users mailing list archive at Nabble.com.