From c3af34272fea07857efc28ee186ead61d7db6a33 Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 19 May 2004 13:58:09 +0000 Subject: [PATCH] Try to create DbSource even if neither url nor driver are defined, because all we're preventing otherwise is a helpful error message. --- src/helma/framework/core/Application.java | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/helma/framework/core/Application.java b/src/helma/framework/core/Application.java index e10c48b4..1d742829 100644 --- a/src/helma/framework/core/Application.java +++ b/src/helma/framework/core/Application.java @@ -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;