[teiid-issues] [JBoss JIRA] (TEIID-5827) XA datasource properties are undefined

Mark Tawk (Jira) issues at jboss.org
Mon Oct 14 02:15:00 EDT 2019


Mark Tawk created TEIID-5827:
--------------------------------

             Summary: XA datasource properties are undefined
                 Key: TEIID-5827
                 URL: https://issues.jboss.org/browse/TEIID-5827
             Project: Teiid
          Issue Type: Bug
            Reporter: Mark Tawk
            Assignee: Steven Hawkins


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]



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the teiid-issues mailing list