[jboss-jira] [JBoss JIRA] (WFLY-10639) JDBC driver as a deployment does not have driver-datasource-class-name and driver-xa-datasource-class-name information
Lin Gao (JIRA)
issues at jboss.org
Tue Jun 26 01:41:00 EDT 2018
Lin Gao created WFLY-10639:
------------------------------
Summary: JDBC driver as a deployment does not have driver-datasource-class-name and driver-xa-datasource-class-name information
Key: WFLY-10639
URL: https://issues.jboss.org/browse/WFLY-10639
Project: WildFly
Issue Type: Enhancement
Components: JCA
Reporter: Lin Gao
Assignee: Lin Gao
Priority: Minor
When adding JDBC driver as a deployment, the JDBC driver will ignore +driver-datasource-class-name+ and +driver-xa-datasource-class-name+.
{code:java}
[standalone at localhost:9990 /] deploy ~/Downloads/ojdbc8.jar
[standalone at localhost:9990 /] /subsystem=datasources:installed-drivers-list()
{
"outcome" => "success",
"result" => [
{
"driver-name" => "ojdbc8.jar",
"deployment-name" => "ojdbc8.jar",
"driver-module-name" => undefined,
"module-slot" => undefined,
"driver-datasource-class-name" => undefined,
"driver-xa-datasource-class-name" => undefined,
"datasource-class-info" => undefined,
"driver-class-name" => "oracle.jdbc.OracleDriver",
"driver-major-version" => 12,
"driver-minor-version" => 2,
"jdbc-compliant" => true
},
...
]
}
{code}
It would be good to try to extract the +driver-datasource-class-name+ and +driver-xa-datasource-class-name+ information by scanning the classes in the jar which are sub classs of +javax.sql.DataSource+ and +javax.sql.XADataSource+ separately.
It would save a lot typing efforts(specifying datasource-class-name for each data source configuration) when user tries to configure many data sources using the deployed JDBC driver.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list