[jboss-jira] [JBoss JIRA] (JBJCA-1023) Use datasource class as default

RH Bugzilla Integration (JIRA) jira-events at lists.jboss.org
Tue Oct 15 06:16:36 EDT 2013


    [ https://issues.jboss.org/browse/JBJCA-1023?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12814124#comment-12814124 ] 

RH Bugzilla Integration commented on JBJCA-1023:
------------------------------------------------

Tom Fonteyne <tfonteyn at redhat.com> made a comment on [bug 1019186|https://bugzilla.redhat.com/show_bug.cgi?id=1019186]

Example setup:

<datasources>
  <datasource jndi-name="java:jboss/datasources/oracleDS" pool-name="oracleDS" enabled="true" use-ccm="true" use-java-context="true" >
  <connection-url>     jdbc:oracle:thin:@oracleserver.redhat.com:1521:oracle</connection-url>
  <datasource-class>oracle.jdbc.pool.OracleDataSource</datasource-class>
  <connection-property name="URL">jdbc:oracle:thin:@oracleserver.redhat.com:1521:oracle</connection-property>
  <driver>oracle</driver>
  <security>
    <user-name>user</user-name>
    <password>pass</password>
  </security>
  <validation>
    <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleValidConnectionChecker"/>
  <stale-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleStaleConnectionChecker"/>
  <exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleExceptionSorter"/>
                    </validation>
  </datasource>
  <drivers>
    <driver name="oracle" module="com.oracle.jdbc">
      <xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
    </driver>
  </drivers>
</datasources>

Note the presence of both:
  connection-url: needed for JBoss
  connection-property name="URL"> : needed for the Oracle driver
Their setting should be identical
                
> Use datasource class as default
> -------------------------------
>
>                 Key: JBJCA-1023
>                 URL: https://issues.jboss.org/browse/JBJCA-1023
>             Project: IronJacamar
>          Issue Type: Task
>          Components: JDBC
>            Reporter: Jesper Pedersen
>            Assignee: Jesper Pedersen
>             Fix For: 1.1.0.Beta5
>
>
> Switch priority from driver class to datasource class

--
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