Hello, I couldn't find any sample blueprint for Camel JDBC component, however when I tried the below one, I am getting
org.apache.camel.RuntimeCamelException: *org.osgi.service.blueprint.container.NoSuchComponentException: No component with id 'jdbc://dataSource' could be found* Please find the blueprint that I have used and advice where I am going wrong. ***************************************************************************** <?xml version="1.0" encoding="UTF-8"?> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd"> <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName" value="org.apache.derby.jdbc.ClientDriver"/> <property name="url" value="jdbc:derby://localhost:1527/sample" /> <property name="username" value="app" /> <property name="password" value="app" /> </bean> <camelContext xmlns="http://camel.apache.org/schema/blueprint"> <route> <from uri="timer://customerDataTrigger?delay=2000&period=2000"/> <setBody> <constant>select * from APP.CUSTOMER</constant> </setBody> <to uri="jdbc:dataSource"/> <split> <simple>${body}</simple> <log message="*** Select all : ${body}"/> </split> </route> </camelContext> </blueprint> ***************************************************************************** Thanks, Chaks. -- View this message in context: http://camel.465427.n5.nabble.com/simple-example-for-JDBC-in-osgi-tp4912525p4990478.html Sent from the Camel - Users mailing list archive at Nabble.com.
