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:
parent
c908d1d097
commit
c3af34272f
1 changed files with 6 additions and 9 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue