Re: Configuring database with jdbc

2014-07-09 Thread Licia
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.

Re: Configuring database with jdbc

2014-07-09 Thread Claus Ibsen
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

Re: Configuring database with jdbc

2014-07-09 Thread Licia
(); //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

Re: Configuring database with jdbc

2014-07-09 Thread Claus Ibsen
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

Re: Configuring database with jdbc

2014-07-09 Thread Licia
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.

Re: Configuring database with jdbc

2014-07-09 Thread akoufoudakis
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

Re: Configuring database with jdbc

2014-07-09 Thread Licia
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.

Re: Configuring database with jdbc

2014-07-09 Thread akoufoudakis
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

Re: Configuring database with jdbc

2014-07-09 Thread Licia
.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.

Re: Configuring database with jdbc

2014-07-09 Thread akoufoudakis
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

Re: Configuring database with jdbc

2014-07-09 Thread Charles Moulliard
> > > > -- > 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

Re: Configuring database with jdbc

2014-07-09 Thread Licia
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.

Re: Configuring database with jdbc

2014-07-09 Thread akoufoudakis
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.

Re: Configuring database with jdbc

2014-07-09 Thread fradj zayen
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. >

Re: Configuring database with jdbc

2014-07-09 Thread Charles Moulliard
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

Configuring database with jdbc

2014-07-09 Thread Licia
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.