Register DbSource even if driver is invalid!
This commit is contained in:
parent
1bb1297daf
commit
ced24237b6
1 changed files with 1 additions and 1 deletions
|
@ -21,13 +21,13 @@ public class DbSource {
|
|||
|
||||
public DbSource (String name) throws ClassNotFoundException {
|
||||
this.name = name;
|
||||
IServer.dbSources.put (name.toLowerCase (), this);
|
||||
url = IServer.dbProps.getProperty (name+".url");
|
||||
driver = IServer.dbProps.getProperty (name+".driver");
|
||||
Class.forName (driver);
|
||||
user = IServer.dbProps.getProperty (name+".user");
|
||||
password = IServer.dbProps.getProperty (name+".password");
|
||||
IServer.getLogger().log ("created db source ["+name+", "+url+", "+driver+", "+user+"]");
|
||||
IServer.dbSources.put (name.toLowerCase (), this);
|
||||
}
|
||||
|
||||
public Connection getConnection () throws ClassNotFoundException, SQLException {
|
||||
|
|
Loading…
Add table
Reference in a new issue