Hi All,

I have created one router to read the xsd and to fetch the element name
(table) and load the txt file data into the table.

But its not giving me any error and the data not inserted into table.

Please advice.

Here is router

from("timer://foo?period=60000")

                                
.bean(TestDemo.class,"parseElement(/home/cloudera/Desktop/Sample.xsd)")
                                
                                .to("mock:abc")
                                .setHeader("tablename", simple("abc")).
                                
                                // setBody(constant("load data local inpath 
'/sri/address.txt' OVERWRITE
into table ${in.header.tablename}")).
                                
                                
                                setBody(constant("load data  local inpath 
'/sri/address.txt' OVERWRITE
into table abc"))
                                .end();



--
View this message in context: 
http://camel.465427.n5.nabble.com/camel-xsd-tp5760000.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to