[ 
https://issues.apache.org/jira/browse/CAMEL-7332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13982699#comment-13982699
 ] 

Willem Jiang commented on CAMEL-7332:
-------------------------------------

camel-sql doesn't load the JDBC driver itself, the contain (Spring, Blueprint) 
create a pool from camel . As  dbcp bundle use TCCL as fall back option, we 
could work around the dbcp bundle issue by setting up the Application bundle 
classloader as the TCCL. Spring setup the TCCL with the application bundle 
class loader when it loads the application, but Aries doesn't do the same 
thing. In camel if we set the TCCL ourselves, it won't effect the dbcp pool 
loading, we just put the BundleClassLoader as ApplicationContext classloader 
for camel internal usage.  

> camel-sql - Should have dynamic import so jdbc driver can be loaded
> -------------------------------------------------------------------
>
>                 Key: CAMEL-7332
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7332
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-sql
>    Affects Versions: 2.12.3
>            Reporter: Claus Ibsen
>            Assignee: Willem Jiang
>             Fix For: 2.12.4, 2.13.1, 2.14.0
>
>
> If you use OSGi blueprint and use camel-sql, to setup a jdbc driver then it 
> cannot load it from a blueprint xml file.
> But if you use spring-dm it works.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to