camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiangqiuzhao <xiangqiuz...@gmail.com>
Subject how to add some routes to CamelContext by hand?
Date Fri, 29 Jul 2011 04:07:21 GMT
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.

Mime
View raw message