Hello,
I tried the below code and able to print the id, but not able to get the
required query.
Please correct the code:
<when>
<simple>${header.operationName} == 'getCompany'</simple>
<setHeader headerName='id'>
<simple>$simple{body}</simple>
</setHeader>
<log id="log1" message ="param name---:${in.header.id}" />
<to uri="sql:SELECT * from company where id = :#id"/>
</when>
Thanks,
--
View this message in context:
http://camel.465427.n5.nabble.com/Route-Camel-Pass-variables-in-a-SQL-query-tp477181p5756205.html
Sent from the Camel - Users mailing list archive at Nabble.com.