Try to create DbSource even if neither url nor driver are defined, because

all we're preventing otherwise is a helpful error message.
This commit is contained in:
hns 2004-05-19 13:58:09 +00:00
parent c908d1d097
commit c3af34272f

View file

@ -1592,15 +1592,12 @@ public final class Application implements IPathElement, Runnable {
return dbs;
}
if ((dbProps.getProperty(dbSrcName + ".url") != null) &&
(dbProps.getProperty(dbSrcName + ".driver") != null)) {
try {
dbs = new DbSource(name, dbProps);
dbSources.put(dbSrcName, dbs);
} catch (Exception problem) {
logEvent("Error creating DbSource " + name);
logEvent("Reason: " + problem);
}
try {
dbs = new DbSource(name, dbProps);
dbSources.put(dbSrcName, dbs);
} catch (Exception problem) {
logEvent("Error creating DbSource " + name +": ");
logEvent(problem.toString());
}
return dbs;