throw new RuntimeException("bad db type"); // this should never happen; should have never gotten to this point with a bad type
}
LOG.info("Created datasources");
final DatasourceJBossASClient client = new DatasourceJBossASClient(mcc);
client.enableDatasource(RHQ_DATASOURCE_NAME_NOTX);
client.enableXADatasource(RHQ_DATASOURCE_NAME_XA);
LOG.info("Enabled datasources");
}