commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Balazs Zsoldos (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DBCP-363) dbcp bundle should use DynamicImport
Date Tue, 26 Nov 2013 14:35:37 GMT

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

Balazs Zsoldos commented on DBCP-363:
-------------------------------------

[~jukkaz]: It takes about 10 min to write a DataSourceFactory for any JDBC driver. DynamicImport
is one of the biggest mistake inside OSGi a developer can use.

Instead, please make it possible to create a BasicDataSource based on another DataSource like
at https://github.com/everit-org/commons-dbcp-component/blob/master/src/main/java/org/everit/osgi/jdbc/commons/dbcp/BasicSimpleDataSource.java

> dbcp bundle should use DynamicImport
> ------------------------------------
>
>                 Key: DBCP-363
>                 URL: https://issues.apache.org/jira/browse/DBCP-363
>             Project: Commons Dbcp
>          Issue Type: Bug
>    Affects Versions: 1.3, 1.4
>            Reporter: Felix Mayerhuber
>             Fix For: 1.4.1
>
>
> The bundle provided in the maven central of the commons.dbcp doesn't have a DynamicImport
defined. This resolves in following error:
> If you want to use a BasicDataSource class as dataSource and the class is provided by
the osgi environment (equinox, ...) the dataSource is not able to be created due to a ClassNotFoundException.
If the bundle would have set DynamicImport it works. (I had to change from your bundle to
the commons.dbcp bundle provided by servicemix, because there the DynamicImport is set)



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message