In Camel 2.17.0, camel sql component is not able to resolve property value using simple expression when externalized.
<route>
<from uri="timer://foo?repeatCount=1" />
<setProperty propertyName="column_name">
<simple>1234</simple>
</setProperty>
<!-- could nto resolve property - failed ->
<to uri="sql:{{sql.query}}" />
<!-- working ->
<to uri="sql:classpath:sql.query.sql?dataSource=#DS" />
</route>
External Properties file:
sql.query = insert into table (column_name) values (:#${property.column_name})
Error Message:
Could not resolve placeholder 'property.column_name' in string value "sql:insert into table (column_name) values (:#${property.column_name})"