[jboss-jira] [JBoss JIRA] (AS7-6565) jdbc driver deployed inside ear takes name of ear
Tom Eicher (JIRA)
jira-events at lists.jboss.org
Wed Feb 20 03:18:56 EST 2013
[ https://issues.jboss.org/browse/AS7-6565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12755292#comment-12755292 ]
Tom Eicher edited comment on AS7-6565 at 2/20/13 3:18 AM:
----------------------------------------------------------
Having the ear name as _part_ of the service name is reasonable, but not _only_ the ear name.
i.e. {{myapp_ear_postgresql_9_1_901_jdbc4_jar}} would make sense, but not {{myapp_ear}}.
Imagine, you had 2 JDBC drivers (one postgres, one Oracle) in the ear...
was (Author: tomeicher):
Having the ear name as _part_ of the service name is reasonable, but not _only_ the ear name.
i.e. {{myapp_ear_postgresql_9_1_901_jdbc4_jar as expected}} would make sense, but not {{myapp_ear}}.
Igmagine, you had 2 JDBC drivers (one postgres, one Oracle) in the ear...
> jdbc driver deployed inside ear takes name of ear
> -------------------------------------------------
>
> Key: AS7-6565
> URL: https://issues.jboss.org/browse/AS7-6565
> Project: Application Server 7
> Issue Type: Bug
> Components: JCA
> Affects Versions: 7.1.1.Final
> Reporter: Tom Eicher
> Assignee: Jesper Pedersen
>
> Including a JDBC driver, in this case PostgreSQL, in an ear like
> {code}
> myapp.ear:
> lib/postgresql-9.1-901.jdbc4.jar
> {code}
> does deploy the driver:
> {code}
> 23:37:28,118 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) JBAS010404: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 9.1)
> {code}
> however the service name is not {{postgresql_9_1_901_jdbc4_jar}} as expected,
> but it's {{myapp_ear}}.
> (Seen in admin console, and this is the only value accepted in my -ds.xml file.)
> 1. JDBC driver service should pick name of innermost jar, not of containing ear
> 2. driver name (as to be used in datasource definition) should be logged with the log message above.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list