camel.465427.n5.nabble.com/how-to-do-a-registry-of-type-javax-sql-DataSource-td5729644.html
Thank you anyway.
--
View this message in context:
http://camel.465427.n5.nabble.com/Configuring-database-with-jdbc-tp5753574p5753602.html
Sent from the Camel - Users mailing list archive at Nabble.com.
00);
> //Stopping the context
> myContext.stop();
>
> }
>
>
> But anyways, I'm still getting the exact same errors.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Configuring-database-with-jdbc-tp5753574p575359
();
//Pausing to let the route do its work
Thread.sleep(1);
//Stopping the context
myContext.stop();
}
But anyways, I'm still getting the exact same errors.
--
View this message in context:
http://camel.465427.n5.nabble.com/Configuring-databa
finition.addRoutes(ProcessorDefinition.java:212)
> at
> org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:907)
> ... 8 more
> Caused by: org.apache.camel.NoSuchBeanException: No bean could be found in
> the registry for: dataSource of type: javax.sq
el.component.jdbc.JdbcComponent.createEndpoint(JdbcComponent.java:49)
at
org.apache.camel.impl.DefaultComponent.createEndpoint(DefaultComponent.java:123)
at
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:512)
... 29 more
--
View this message in context:
http://camel.465427.n5.nabble.com/Configuring-database-with-jdbc-tp5753574p5753592.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Can you, please, repost again what you have for now:
route (from...to), spring configuration, and the exception, which is thrown
now?
--
View this message in context:
http://camel.465427.n5.nabble.com/Configuring-database-with-jdbc-tp5753574p5753589.html
Sent from the Camel - Users mailing
is message in context:
http://camel.465427.n5.nabble.com/Configuring-database-with-jdbc-tp5753574p5753588.html
Sent from the Camel - Users mailing list archive at Nabble.com.
I think, there is a small problem.
In your route, you still call it "dataSource".
However, in your bean definition, you call it as "myDataSource".
Check, if it helps.
--
View this message in context:
http://camel.465427.n5.nabble.com/Configuring-database-with-jdbc-tp57535
.apache.camel.NoSuchBeanException: No bean could be found in
the registry for: dataSource of type: javax.sql.DataSource
[...]
Do I need something more than camel-core and camel-jdbc in my pom.xml ?
--
View this message in context:
http://camel.465427.n5.nabble.com/Configuring-database-with-jdbc-tp5753574p5753586.html
Sent from the Camel - Users mailing list archive at Nabble.com.
or take fradj reply as an example.
If you have it already configured, check if there is a database connectivity
problem or check, whether your select statement is correct.
--
View this message in context:
http://camel.465427.n5.nabble.com/Configuring-database-with-jdbc-tp5753574p5753585.html
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Configuring-database-with-jdbc-tp5753574p5753583.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Charles Moulliard
Apache Committer / Architect @RedHat
Twitter : @cmoulliard | Blog : http://cmoulliard.github.io
I don't really understand what you mean by "data source spring
configuration".
Maybe it's something I lack.
--
View this message in context:
http://camel.465427.n5.nabble.com/Configuring-database-with-jdbc-tp5753574p5753583.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hello, Licia!
Can you share, please, your data source spring configuration?
--
View this message in context:
http://camel.465427.n5.nabble.com/Configuring-database-with-jdbc-tp5753574p5753576.html
Sent from the Camel - Users mailing list archive at Nabble.com.
cause every example I encountered was using a
> SQL script, first creating a database/table. But I don't want to do that
> since I already got one.
>
> If you know exemples or can explain, where/how to configure the database
> connection, I'd be very thankfull.
>
ples with camel-context.xml files but
> I
> don't know how to right it, cause every example I encountered was using a
> SQL script, first creating a database/table. But I don't want to do that
> since I already got one.
>
> If you know exemples or can explain, where/how to con
t one.
If you know exemples or can explain, where/how to configure the database
connection, I'd be very thankfull.
P.S. : I already read the jdbc and sql examples from camel and it didn't
really help me.
--
View this message in context:
http://camel.465427.n5.nabble.com/Configuring-database-with-jdbc-tp5753574.html
Sent from the Camel - Users mailing list archive at Nabble.com.
16 matches
Mail list logo