[jboss-jira] [JBoss JIRA] (WFLY-5765) Data source connection-properties is defined as an attribute and a sub-resource
James Perkins (JIRA)
issues at jboss.org
Wed Dec 2 17:52:00 EST 2015
James Perkins created WFLY-5765:
-----------------------------------
Summary: Data source connection-properties is defined as an attribute and a sub-resource
Key: WFLY-5765
URL: https://issues.jboss.org/browse/WFLY-5765
Project: WildFly
Issue Type: Bug
Components: JCA
Reporter: James Perkins
Assignee: Jesper Pedersen
Priority: Critical
The {{subsystem=datasource/data-source=*}} resource has a {{connection-properties}} attribute and a {{connection-properties}} sub-resource. Since DMR is a tree structure each child must have a unique key. Since the parent resource has a {{connection-properties}} attribute and sub-resource with a {{read-resource}} operation you will only get one of the values.
Also writing to the {{connection-properties}} attribute fails to marshal the XML since marshaller expects the value to look something like
{code}
{ "key" => { "value" => "real-value" } }
{code}
But the resource definition expects
{code}
{ "key" => "real-value" }
{code}
The attribute does not appear to be in EAP 6.4. It is however in WildFly 8.x and 9.x. Some further research should be done, but the attribute could likely be removed. Not having the attribute would also be more consistent with XA data sources.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list