Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-3609

Teiid Connection import: driver field not populated for resource adapters

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • None
    • None

      When importing using Teiid Connection, the driver field is not populated for resource adapters when the pool name of the connection definition is the same as the id of the resource adapter itself. Except for the case that there is another resource adapter defined for the same module without any connection definitions.

      In other words, when the following is included in standalone.xml, the driver field is not populated

      <resource-adapter id="file">
          <module slot="main" id="org.jboss.teiid.resource-adapter.file"/>
          <transaction-support>NoTransaction</transaction-support>
          <connection-definitions>
              <connection-definition class-name="org.teiid.resource.adapter.file.FileManagedConnectionFactory" jndi-name="java:/file" enabled="true" pool-name="file">
                  <config-property name="ParentDirectory">
                      /home/
                  </config-property>
              </connection-definition>
          </connection-definitions>
      </resource-adapter>
      

      However, everything works as expected when the configuration is changed to this:

      <resource-adapter id="file">
          <module slot="main" id="org.jboss.teiid.resource-adapter.file"/>
          <transaction-support>NoTransaction</transaction-support>
          <connection-definitions>
              <connection-definition class-name="org.teiid.resource.adapter.file.FileManagedConnectionFactory" jndi-name="java:/fileDS" enabled="true" pool-name="fileDS">
                  <config-property name="ParentDirectory">
                      /home/
                  </config-property>
              </connection-definition>
          </connection-definitions>
      </resource-adapter>
      

      Or this:

      <resource-adapter id="file">
          <module slot="main" id="org.jboss.teiid.resource-adapter.file"/>
      </resource-adapter>
      <resource-adapter id="fileDS">
          <module slot="main" id="org.jboss.teiid.resource-adapter.file"/>
          <transaction-support>NoTransaction</transaction-support>
          <connection-definitions>
              <connection-definition class-name="org.teiid.resource.adapter.file.FileManagedConnectionFactory" jndi-name="java:/fileDS" enabled="true" pool-name="fileDS">
                  <config-property name="ParentDirectory">
                      /home/
                  </config-property>
              </connection-definition>
          </connection-definitions>
      </resource-adapter>
      

      This might be related to TEIIDDES-1895 and is most likely the original cause of TEIIDDES-2563.

      Clicking Next in the import wizard when such a datasource is selected causes the same error as described in TEIIDDES-2563.

            rhn-engineering-rareddy Ramesh Reddy
            asmigala@redhat.com Andrej Smigala
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: