Stefano Maestri created WFLY-5821:
-------------------------------------
Summary: Data source connection-properties is defined as an attribute and a
sub-resource
Key: WFLY-5821
URL:
https://issues.jboss.org/browse/WFLY-5821
Project: WildFly
Issue Type: Bug
Components: JCA
Reporter: Stefano Maestri
Assignee: Stefano Maestri
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)