Start the application server
Deploy a datasource or use the existing datasource
Disable the given datasource
Verify the preferred datasource has been disabled via admin console
Try to enable the datasource via CLI
The "JBAS014749: Operation handler failed: Service jboss.data-source-config.ExampleDS is already registered" will be thrown
Compatibility/Configuration
NEW
It's not possible to enable a datasource via CLI. The following exception gets thrown :
JBAS014749: Operation handler failed: Service jboss.data-source-config.ExampleDS is already registered