In XML DSL you should be able to do it using spring bean style. It does take a bit XML as you need to setup a spring jdbc template also
<bean id="myJdbcTemplate" class=" ...JdbcTemplate"> ... the data source need to be injected </bean> <bean id="foo" class="org.apache.camel.component.sql.SqlEndpoint"> <property name="jdbcTemplate" ref="myJdbcTemplate"/> <property name="query" value="insert the SQL value here"/> </bean> And in the DSL refer to the foo endpoint <to ref="foo"/> On Mon, Jun 11, 2012 at 12:58 PM, Claus Ibsen <[email protected]> wrote: > Hi > > I logged a ticket to see if we can fix this > https://issues.apache.org/jira/browse/CAMEL-5355 > > > On Mon, Jun 11, 2012 at 9:38 AM, Jesper Olsen <[email protected]> wrote: > >> We are using camel version 2.7.1 >> >> -- >> View this message in context: >> http://camel.465427.n5.nabble.com/Using-sign-in-spring-route-sql-select-fails-tp5714171p5714275.html >> Sent from the Camel - Users mailing list archive at Nabble.com. >> > > > > -- > Claus Ibsen > ----------------- > FuseSource > Email: [email protected] > Web: http://fusesource.com > Twitter: davsclaus, fusenews > Blog: http://davsclaus.com > Author of Camel in Action: http://www.manning.com/ibsen > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
