Is there a way to get all available DataSource names from within a servlet?
For example, in my DataSourceLoader servlet I want to iterate all known DataSources and inspect their config. Something like ...
DataSourceManager.getDataSourceNames();
So far, I can do this...
String[] names = new String[] { "foo", "bar" };
for (String n : names) {
DataSource ds = DataSourceManager.get(n);
Object o = ds.getConfig().get("requiresRole");
// etc.
}
I'd like to do this...
List<String> names = DataSourceManager.getDataSourceNames();
for (String n : names) {
DataSource ds = DataSourceManager.get(n);
Object o = ds.getConfig().get("requiresRole");
// etc.
}
SmartClient version: v9.0p_2013-07-11EVAL
Thanks,
Chris
For example, in my DataSourceLoader servlet I want to iterate all known DataSources and inspect their config. Something like ...
DataSourceManager.getDataSourceNames();
So far, I can do this...
String[] names = new String[] { "foo", "bar" };
for (String n : names) {
DataSource ds = DataSourceManager.get(n);
Object o = ds.getConfig().get("requiresRole");
// etc.
}
I'd like to do this...
List<String> names = DataSourceManager.getDataSourceNames();
for (String n : names) {
DataSource ds = DataSourceManager.get(n);
Object o = ds.getConfig().get("requiresRole");
// etc.
}
SmartClient version: v9.0p_2013-07-11EVAL
Thanks,
Chris
Comment