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

XA datasource properties are undefined

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 13.0, 12.2.2, 12.3.1
    • None
    • AdminApi
    • None

    Description

      The method getTemplatePropertyDefinitions, in the class AdminFactory.java.
      The datasource name should be "xa-data-source" instead of "data-source" when the datasource is XA. See the code snapshot below:

      // get JDBC properties  
              if (isXA(templateName)) {  
                      cliCall("read-resource-description", new String[] {"subsystem", "datasources", "data-source",   
                              stripXA(templateName)}, null, builder);  
                      addXAProperties(props);  
              } else {  
                  cliCall("read-resource-description", new String[] {"subsystem", "datasources", "data-source",   
                          templateName}, null, builder);  
                  addDriverproperties(props);              
              }  
       

      Another issue, when reading using the method getDataSource in the class AdminFactory.java, it is not getting the properties recursively. and the connection properties are returned as undefined like below:

       
       "xa-datasource-properties" => {  
       "DatabaseName" => undefined,  
       "PortNumber" => undefined,  
       "ServerName" => undefined  
              }  
       

      more details in the following forum discussion link: https://developer.jboss.org/thread/280411?start=15&tstart=0

      Attachments

        Activity

          People

            rhn-engineering-shawkins Steven Hawkins
            mtawk Mark Tawk (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: