I setup route below  where in to method i call first the direct:delete and
after direct:insert.
direct:delete cleans  and direct:insert populates a table.

My question is, direct:insert starts after direct:delete has finish ?
Are the to uris processed sequential ? 

// route
from(String.format(
"sql:%s?dataSource=#dataSource.busmsg&consumer.useIterator=false",
                                                
composeSql())).to("direct:delete", "direct:insert")
                                .process(new StopCamel());

// delete
from("direct:delete")   .to("sql:delete cust_st_bus_empty where
table_suffix='{{table.busmsg.suffix}}'?dataSource=#dataSource.infor");

// insert
from("direct:insert")
.transform().method(BusEmptyTransform.class).to("sql:insert into
cust_st_bus_empty(id,dt_crt,obj_code,obj_org,dt_trasf_start,dt_trasf_end,per_code,trasf_ours,trasf_min,
table_suffix) values
(sys_guid(),sysdate,#,#,#,#,#,#,#,#)?dataSource=#dataSource.infor&batch=true");




-----
kh
--
View this message in context: 
http://camel.465427.n5.nabble.com/Route-with-more-uris-e-g-to-uri1-uri2-uris-are-processed-sequential-tp5739651.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to