>  camel.addRoutes(new RouteBuilder() {
>                       
>                  @Override
>                  public void configure() {
>                         
>                          from("direct:start")
> ...
>                              .process(new Processor() {
> ...   
>                                          routeId = 
> routeId.substring(routeId.indexOf("0"));                                     
>                                          RouteBuilder rb = new 
> MyRouteBuilder(routeId);
>                                          CamelContext c = 
> exchange.getContext();
>                                          c.addRoutes(rb);
> ...
>                                       }
>                               });
> }

I have a doubt in this implementation. The routes are being added to the
context in the .process() method of the route "direct:start"
But, this code will be invoked only when someone is producing to the
"direct:start" endpoint from somewhere else in the code, right?



--
View this message in context: 
http://camel.465427.n5.nabble.com/how-to-dynamically-set-the-jms-queue-name-tp5720527p5784477.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to