Camel-JDBC: No bean could be found in the registry for...

One Star

Camel-JDBC: No bean could be found in the registry for...

Hi all,
I am trying to get camel-jdbc working with an OSGI datasource.
Unfortunately I get an exception during start:
No bean could be found in the registry for: osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=myds) of type: javax.sql.DataSource
I've read many articles (by Google search), and some indicate this should work, others suggest to use an additional directive in the blueprint:
<reference id="myds" interface="javax.sql.DataSource" filter="(osgi.jndi.service.name=myds)"/> and use "jdbc:myds" instead of what I've configured below. Since I do not know where to put the reference definition, I am a bit stuck...
This is what I did in Talend Platform for Data Services 5.2.2:
1. Deployed MySQL JDBC driver to Taled runtime:
karaf@trun> install -s mvn:mysql/mysql-connector-java/5.1.25
karaf@trun> list | grep JDBC
Sun Microsystems' JDBC Driver for MySQL (5.1.25)
2. Deployed datasource (datasource-mysql.xml):
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">

<bean id="dataSource" class="com.mysql.jdbc.jdbc2.optional.MysqlDataSource">
<property name="url" value="jdbc:mysql://localhost:3306/mydb"/>
<property name="user" value="user"/>
<property name="password" value="password"/>
</bean>

<service interface="javax.sql.DataSource" ref="dataSource">
<service-properties>
<entry key="osgi.jndi.service.name" value="myds"/>
</service-properties>
</service>
</blueprint>

3. Deployed a route with cMessageEndpoint (jdbc):
<timer> --> <setBody> --> cMessageEndpoint --> <log>
...with cMessageEndpoint set to: "jdbcSmiley Surprisedsgi:service/javax.sql.DataSource/(osgi.jndi.service.name=myds)"
Any help is most appreciated!
All the best,
Robin