This content has been marked as final.
Show 1 reply
-
1. Re: dynamic query using camel JPA binding
kcbabo Jan 3, 2014 9:40 AM (in response to harish0611)You mention the Camel JPA binding in the title of your post, but the example provided used Camel SQL. Do you have a requirement to use one or the other?
I have not tested this locally, but it appears the Camel SQL component supports using a header 'CamelSqlQuery' to override the SQL query specified in the endpoint:
What implementation are you using to invoke this reference (Bean, Camel, ...)? If it's a Camel route, then just set the header using setHeader in your route definition. If it's a Bean implementation, then you'll need to use a ReferenceInvoker:
Bean - SwitchYard - Project Documentation Editor
hth,
keith