Hi

You should use simple language instead of constant if you want to
refer to headers with ${ } etc
http://camel.apache.org/simple

On Wed, Dec 3, 2014 at 4:51 AM, smilevasu6 <srinivas.thu...@gmail.com> wrote:
> 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.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to