Hi,
ModelNode address = op.get("address");
address.add("subsystem", "datasources");
address.add("datasource", "jndi-name");
If you change the value of the string "jndi-name" to the name of the datasource I think it should work. For example:
ModelNode address = op.get("address");
address.add("subsystem", "datasources");
address.add("datasource", "MyDS");
Regards,
/Daniel