Due to [#WFLY-1967] Connection properties should be extracted automatically when creating a new Datasource - JBoss Issue Tracke…, we have to add connection properties explicitly. This appears to be possible via the CLI but I can't find any documentation that describes what format the --connection-properties is besides being a string.
--connection-properties - (STRING) The connection-properties element allows you to pass in arbitrary connection properties to the Driver.connect(url, props) method
Looks like --connection-properties just doesn't work. It gets parsed as a org.jboss.dmr.ModelValue whose asPropertyList() method always throws java.lang.IllegalArgumentException. I think it should be parsing it as a ListModelValue.
But the workaround is to create the data-source in two stages as discussed here: Creating XA Datasource from the CLI fails