You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Jarek Gawor (JIRA)" <ji...@apache.org> on 2010/03/03 07:17:27 UTC

[jira] Created: (GERONIMO-5165) Discover database drivers in META-INF/services/java.sql.Driver files

Discover database drivers in META-INF/services/java.sql.Driver files
--------------------------------------------------------------------

                 Key: GERONIMO-5165
                 URL: https://issues.apache.org/jira/browse/GERONIMO-5165
             Project: Geronimo
          Issue Type: Sub-task
      Security Level: public (Regular issues)
          Components: databases, osgi
    Affects Versions: 3.0
            Reporter: Jarek Gawor
            Assignee: Jarek Gawor
             Fix For: 3.0


In Java 6, the DriverManager can discover additional database drivers by scanning classloader for META-INF/services/java.sql.Driver resources. This obviously won't work in OSGi environment. 
We probably will need a little extender that discovers these java.sql.Driver resources and registers the driver with DriverManager.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (GERONIMO-5165) Discover database drivers in META-INF/services/java.sql.Driver files

Posted by "Rick McGuire (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-5165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick McGuire closed GERONIMO-5165.
----------------------------------


> Discover database drivers in META-INF/services/java.sql.Driver files
> --------------------------------------------------------------------
>
>                 Key: GERONIMO-5165
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5165
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues) 
>          Components: databases, osgi
>    Affects Versions: 3.0
>            Reporter: Jarek Gawor
>            Assignee: Jarek Gawor
>             Fix For: 3.0-M1
>
>
> In Java 6, the DriverManager can discover additional database drivers by scanning classloader for META-INF/services/java.sql.Driver resources. This obviously won't work in OSGi environment. 
> We probably will need a little extender that discovers these java.sql.Driver resources and registers the driver with DriverManager.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-5165) Discover database drivers in META-INF/services/java.sql.Driver files

Posted by "Rick McGuire (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-5165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick McGuire updated GERONIMO-5165:
-----------------------------------

    Fix Version/s: 3.0-M1
                       (was: 3.0)

> Discover database drivers in META-INF/services/java.sql.Driver files
> --------------------------------------------------------------------
>
>                 Key: GERONIMO-5165
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5165
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues) 
>          Components: databases, osgi
>    Affects Versions: 3.0
>            Reporter: Jarek Gawor
>            Assignee: Jarek Gawor
>             Fix For: 3.0-M1
>
>
> In Java 6, the DriverManager can discover additional database drivers by scanning classloader for META-INF/services/java.sql.Driver resources. This obviously won't work in OSGi environment. 
> We probably will need a little extender that discovers these java.sql.Driver resources and registers the driver with DriverManager.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-5165) Discover database drivers in META-INF/services/java.sql.Driver files

Posted by "Jarek Gawor (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-5165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840716#action_12840716 ] 

Jarek Gawor commented on GERONIMO-5165:
---------------------------------------

Committed (in revision 918544) a little extender that scans bundles for META-INF/services/java.sql.Driver resources and installs the drivers with DelegatingDriver.


> Discover database drivers in META-INF/services/java.sql.Driver files
> --------------------------------------------------------------------
>
>                 Key: GERONIMO-5165
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5165
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues) 
>          Components: databases, osgi
>    Affects Versions: 3.0
>            Reporter: Jarek Gawor
>            Assignee: Jarek Gawor
>             Fix For: 3.0
>
>
> In Java 6, the DriverManager can discover additional database drivers by scanning classloader for META-INF/services/java.sql.Driver resources. This obviously won't work in OSGi environment. 
> We probably will need a little extender that discovers these java.sql.Driver resources and registers the driver with DriverManager.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (GERONIMO-5165) Discover database drivers in META-INF/services/java.sql.Driver files

Posted by "Jarek Gawor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-5165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jarek Gawor resolved GERONIMO-5165.
-----------------------------------

    Resolution: Fixed

> Discover database drivers in META-INF/services/java.sql.Driver files
> --------------------------------------------------------------------
>
>                 Key: GERONIMO-5165
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5165
>             Project: Geronimo
>          Issue Type: Sub-task
>      Security Level: public(Regular issues) 
>          Components: databases, osgi
>    Affects Versions: 3.0
>            Reporter: Jarek Gawor
>            Assignee: Jarek Gawor
>             Fix For: 3.0
>
>
> In Java 6, the DriverManager can discover additional database drivers by scanning classloader for META-INF/services/java.sql.Driver resources. This obviously won't work in OSGi environment. 
> We probably will need a little extender that discovers these java.sql.Driver resources and registers the driver with DriverManager.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.