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;
|
||||
}
|
||||
|
||||
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue