You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Christian Schneider (JIRA)" <ji...@apache.org> on 2015/02/12 09:33:11 UTC

[jira] [Resolved] (KARAF-3478) Switch jdbc commands to use pax-jdbc-config and pax-jdbc-config-pool

     [ https://issues.apache.org/jira/browse/KARAF-3478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Schneider resolved KARAF-3478.
----------------------------------------
    Resolution: Fixed

Committed the change now. The commands are technically independent of pax-jdbc. Of course it is necessary to install pax-jdbc-config so the configs cause the creation of the DataSource services.

So if you try this remember to also install pax-jdbc-config and a database with a DataSourceFactory.

> Switch jdbc commands to use pax-jdbc-config and pax-jdbc-config-pool
> --------------------------------------------------------------------
>
>                 Key: KARAF-3478
>                 URL: https://issues.apache.org/jira/browse/KARAF-3478
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf-shell
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>             Fix For: 4.0.0
>
>
> Currently the jdbc commands for the data sources create blueprint files from templates for some supported databases. 
> The problem with this is that we need to maintain these templates and have a quite tight coupling to these database implementations.
> So if the database changes a class name we use we might even need to support two templates for the same database.
> A better way would be to us pax-jdbc-config and pax-jdbc-pool. These modules allow to create datasources including pooling and XA support just by adding configurations.
> The jdbc commands could help with that by providing a simple way to create or delete the configs. We can also provide features for the most common databases that install all needed bundles.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)