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