Description of problem: Creation of new xa datasource fails with WFLYJCA0069: At least one xa-datasource-property is required for an xa-datasource, rolled-back=true If there is any new required property the JON UI should reflect that. Version-Release number of selected component (if applicable): JON3.3.5 with eap plugin pack update03-DR01 How reproducible: Always Steps to Reproduce: 1. go to subsystem->Connectors->datasource->Child resources->Create child->xa datasource 2. fill all required properties: {jndi-name:'java:jboss/datasources/testDatasourceXA',driver-name:'h2',xa-datasource-class:'org.h2.jdbcx.JdbcDataSource',*2:[{key:'url',value:'jdbc:h2:mem:testDatasourceXA;DB_CLOSE_DELAY=-1'} Actual results: It fails with WFLYJCA0069: At least one xa-datasource-property is required for an xa-datasource, rolled-back=true Expected results: All required properties should be marked as required and attempts to submit without all required properties should fail informing user what is missing. Additional info: Properties from step 2 work with EAP6 correctly
Is adding XA datasource really working for EAP6 either? This is what we send to the server: {"operation":"add","address":[{"subsystem":"datasources"},{"xa-data-source":"XATest"}],"driver-name":"h2","flush-strategy":"FailingConnectionOnly","*2":[{"value":"jdbc:h2:mem:testDatasourceXA;DB_CLOSE_DELAY=-1","key":"url"}],"xa-datasource-class":"org.h2.jdbcx.JdbcDataSource","jndi-name":"ava:jboss/datasources/testDatasourceXA"} Note the "*2" instead of xa-datasource-properties. We don't send that info correctly to EAP6 either. Hmm.
Yes it is working for EAP6. There is automation for both UI and CLI. I think that tsegismont will be able to explain "*2"
The problem itself is in DatasourcesComponent doing this: CreateResourceDelegate delegate = new CreateResourceDelegate(configDef, getASConnection(), getAddress()); report = delegate.createResource(report); There's later on the fix for this "*2" property, but this one misses it.
Pull request sent https://github.com/rhq-project/rhq/pull/215
(In reply to Thomas Segismont from comment #4) > Pull request sent https://github.com/rhq-project/rhq/pull/215 EAP7, unlike EAP6, wants xa-datasource-properties to be part of the creation operation. Same applies to regular datasource.
Merged in master commit e07852abc67546365c1fee94cc3ac9f8369a7a68 Merge: 9066941 f6ae2ef Author: Michael Burman <yak> Date: Mon Mar 14 12:07:39 2016 +0200
Verified on jon-plugin-pack-eap-3.3.0.GA-update-03-DR02 XA and Non-XA datasources are able to create.