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; return dbs;
} }
if ((dbProps.getProperty(dbSrcName + ".url") != null) &&
(dbProps.getProperty(dbSrcName + ".driver") != null)) {
try { try {
dbs = new DbSource(name, dbProps); dbs = new DbSource(name, dbProps);
dbSources.put(dbSrcName, dbs); dbSources.put(dbSrcName, dbs);
} catch (Exception problem) { } catch (Exception problem) {
logEvent("Error creating DbSource " + name); logEvent("Error creating DbSource " + name +": ");
logEvent("Reason: " + problem); logEvent(problem.toString());
}
} }
return dbs; return dbs;