camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arnaud <>
Subject Re: Dynamic DataSource
Date Fri, 11 Sep 2015 08:39:59 GMT
Thanks for your reply Claus.

My fisrt try was with this method :

.setHeader("dataSource", simple("myDynamicDataSource"))
.to(simple("sql:insert into customer(firstname, lastname)
values(:#firstName, :#lastName)?dataSource=#${header.dataSource}")

Bu when the camel constext is started I have the following error: 

Caused by: org.apache.camel.NoSuchBeanException: No bean could be found in
the registry for: ${header.dataSource} of type: javax.sql.DataSource


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message