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

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


     [ https://issues.jboss.org/browse/TEIID-5827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Tawk updated TEIID-5827:
-----------------------------
    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:
 
{code:java}
// 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);              
        }  
 {code}

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:
 
 {code:java} 
 "xa-datasource-properties" => {  
 "DatabaseName" => undefined,  
 "PortNumber" => undefined,  
 "ServerName" => undefined  
        }  
 {code}
more details in the following forum discussion link: [https://developer.jboss.org/thread/280411?start=15&tstart=0]

  was:
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]



> 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
>            Priority: Major
>
> 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:
>  
> {code:java}
> // 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);              
>         }  
>  {code}
> 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:
>  
>  {code:java} 
>  "xa-datasource-properties" => {  
>  "DatabaseName" => undefined,  
>  "PortNumber" => undefined,  
>  "ServerName" => undefined  
>         }  
>  {code}
> 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