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

Steven Hawkins (Jira) issues at jboss.org
Mon Oct 14 13:53:00 EDT 2019


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

Steven Hawkins updated TEIID-5827:
----------------------------------
    Component/s: AdminApi


> XA datasource properties are undefined
> --------------------------------------
>
>                 Key: TEIID-5827
>                 URL: https://issues.jboss.org/browse/TEIID-5827
>             Project: Teiid
>          Issue Type: Bug
>          Components: AdminApi
>            Reporter: Mark Tawk
>            Assignee: Steven Hawkins
>            Priority: Major
>             Fix For: 13.0, 12.2.2, 12.3.1
>
>
> 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