You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by LiamO <li...@gmail.com> on 2016/08/08 15:23:52 UTC

Camel unable to find my datasource

Hi, I had a lot of fun and games registering a firebird datasource in Karaf.
Thanks to PAX-JDBC and Christian Scheider's tutorial I was able to manage
this and have the datasource karaf@root()> jdbc:ds-listName   | Product        
| Version         | URL                                                                                                                                                                                                                                
|
Status------------------------------------------------------------------------------------------------------------------------                                                                                                                                                      
----------unbdev | Firebird 2.58LI | LI-V2.5.3.26778 |
jdbc:firebirdsql:java://lo-******-dev-01/opt/unb/db/*********12-05-2016.fdb
| OKI can interrogate the db using the Karaf jdbc commands. Unfortunately
when I try to run a Camel instance containing the following routepublic void
configure() throws Exception {  from("direct:makeFile") 
.to("jdbc:unbdev").split(body()).process(new
ResultToReport()).to("file:/testx/?charset=utf-8") 
.to("direct:makeFileComplete");}I get an Activator start error with the
causeCaused by: org.apache.camel.FailedToCreateRouteException: Failed to
create route route71 at: >>> To[jdbc:unbdev] <<< in route:
Route(route71)[[From[direct:makeFile]] -> [To[jdbc:unbdev], ... because of
Failed to resolve endpoint: jdbc://unbdev due to: No bean could be found in
the registry for: unbdev of type: javax.sql.DataSourceNaturally the route
works fine in a unit test outside of Karaf using a simple registry. I'm
sorry as it looks like something so simple but I am just left scratching my
head.Oh and I am running on Karaf 4.0.5 and Camel 2.17.2. Thanks in
advance.Regards,Liam



--
View this message in context: http://karaf.922171.n3.nabble.com/Camel-unable-to-find-my-datasource-tp4047458.html
Sent from the Karaf - User mailing list archive at Nabble.com.