camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-7332) camel-sql - Should have dynamic import so jdbc driver can be loaded
Date Mon, 28 Apr 2014 01:34:16 GMT

    [ 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)

Mime
View raw message