[
https://issues.apache.org/jira/browse/KARAF-6014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16691806#comment-16691806
]
Grzegorz Grzybek edited comment on KARAF-6014 at 11/20/18 8:49 AM:
-------------------------------------------------------------------
First improvement:
{noformat}
karaf@root()> jdbc:ds-factories
Name │ Class │ Version │ Registration bundle
─────────────────┼─────────────────────────┼─────────┼────────────────────────────────
com.mysql.jdbc │ com.mysql.jdbc.Driver │ 5.1.46 │ com.mysql.jdbc [59]
org.mariadb.jdbc │ org.mariadb.jdbc.Driver │ 1.5.9.0 │ org.mariadb.jdbc [49]
mariadb │ org.mariadb.jdbc.Driver │ │
org.ops4j.pax.jdbc.mariadb [50]
mysql │ org.mariadb.jdbc.Driver │ │
org.ops4j.pax.jdbc.mariadb [50]
{noformat}
was (Author: gzres):
First improvement:
{noformat}
karaf@root()> jdbc:ds-factories
Name │ Class │ Version │ Registration bundle
─────────────────┼─────────────────────────┼─────────┼────────────────────────────────
com.mysql.jdbc │ com.mysql.jdbc.Driver │ 5.1.46 │ com.mysql.jdbc [59]
org.mariadb.jdbc │ org.mariadb.jdbc.Driver │ 1.5.9.0 │ org.mariadb.jdbc [49]
mariadb │ org.mariadb.jdbc.Driver │ │
org.ops4j.pax.jdbc.mariadb [50]
mysql │ org.mariadb.jdbc.Driver │ │
org.ops4j.pax.jdbc.mariadb [50]
{noformat}
> Improve jdbc:* commands
> -----------------------
>
> Key: KARAF-6014
> URL: https://issues.apache.org/jira/browse/KARAF-6014
> Project: Karaf
> Issue Type: Improvement
> Affects Versions: 4.2.1
> Reporter: Grzegorz Grzybek
> Assignee: Grzegorz Grzybek
> Priority: Major
> Fix For: 4.2.2
>
>
> {{jdbc:*}} commands do not work well when there are multiple instances of:
> * {{org.osgi.service.jdbc.DataSourceFactory}}
> * {{javax.sql.DataSource}}
> This is caused partially by pax-jdbc itself, where:
> * {{pax-jdbc}} bundle registers {{DataSourceFactory}} for each driver class
> specified in {{/META-INF/services/java.sql.Driver}} of jdbc driver bundle
> * e.g., {{pax-jdbc-mariadb}} registers the same {{DataSourceFactory}}
> instance with different names: {{mariadb}} and {{mysql}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)