Hi Thanks for reply, I will change accordingly

adding to my previous question,

RouteBuilder routeBuilder = new RouteBuilder() {
        @Override
        public void configure() throws Exception {

                from("seda:start").routeId("mainRoute")
                .multicast().parallelProcessing().to("direct:a","direct:b");

                from("direct:a").from("sftp://ftp1)
                        
.routeId("helloRoute1").to("file://{{sftp.destination.directory}}");
                from("direct:b").from("sftp://ftp2)
                        
.routeId("helloRoute2").to("file://{{sftp.destination.directory}}");
        }
};

Thread.sleep(6000); //Wait for a minute

RouteBuilder routeBuilder1 = new RouteBuilder() {
        @Override
        public void configure() throws Exception {
                from("direct:c").from("sftp://ftp3";)
                
.routeId("helloRoute3").to("file://{{sftp.destination.directory}}");

        }
};
camelContext.addRoutes(routeBuilder1);
Thread.sleep(500000);

------------ Does this equal to 
<from uri="seda:start"/>
<multicast>
   <to uri="direct:a"/>
   <to uri="direct:a"/>
<multicast>

when I add <direct:c> like above 

<from uri="seda:start"/>
<multicast>
   <to uri="direct:a"/>
   <to uri="direct:a"/>
   <to uri="direct:c"/>
<multicast>  (does the above code converts like this?, because I want to add
another router which is similar to what I have added as parallel to those
already started processes).


Thanks you very much for your response.




--
View this message in context: 
http://camel.465427.n5.nabble.com/Can-i-use-seda-start-or-direct-start-to-start-a-route-tp5741305p5741311.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to