Hi Juan,

You can use SQL component [1] with conjunction with the Recipient List EIP
[2] to achieve this.

from("direct:sql").recipientList(header("SQL_QUERY");
...
producerTemplate.sendBodyAndHeader("direct:sql", queryParams, "SQL_QUERY",
Collections.singletonList("sql:insert into foo values (#,#)"));

But this is actually kind of hack. I'll raise Jira issue today, as in fact
we should provide support for parameters for JDBC component (in order to
provide SQL injection safety).

Best regards.

[1] http://camel.apache.org/sql-component.html
[2] http://camel.apache.org/recipient-list.html

--
Henryk Konsek



--
View this message in context: 
http://camel.465427.n5.nabble.com/Dinamyc-SQL-with-arguments-tp5729003p5729006.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to