I checked the source of spring-jdbc and I think that we guided you falsly.
Sorry for that.

spring-jdbc uses by default the Thread context class loader in order to
load your driver class (in your case the postgres driver).
If no thread context class loader is used, then it delegates to spring-core
classloader (why makes creating a fragment for spring-jdbc useless).

So, the problem in your case is that the thread context classloader is not
set. As of camel 2.8.0, the Thread context classloader is properlly set for
blueprint routes.

I would propose you to update to camel 2.8.0+ and I think that it will work
(even without a fragment).
An other option is not to initialize the driver by using the class for name
apporach (directly instantiate the datasource using the class provided by
your driver).


-- 
*Ioannis Canellos*
*
FuseSource <http://fusesource.com>

**
Blog: http://iocanel.blogspot.com
**
Apache Karaf <http://karaf.apache.org/> Committer & PMC
Apache Camel <http://camel.apache.org/> Committer
Apache ServiceMix <http://servicemix.apache.org/>  Committer
Apache Gora <http://incubator.apache.org/gora/> Committer
Apache DirectMemory <http://incubator.apache.org/directmemory/> Committer
*

Reply via email to