equal
deleted
inserted
replaced
84 } catch (ConfigurationException e) { |
84 } catch (ConfigurationException e) { |
85 log.log(Level.SEVERE, "Unable to load SQL-DK configuration for name: {0}. Is it defined in {1}?", new Object[]{name, Constants.CONFIG_FILE}); |
85 log.log(Level.SEVERE, "Unable to load SQL-DK configuration for name: {0}. Is it defined in {1}?", new Object[]{name, Constants.CONFIG_FILE}); |
86 throw new SQLException("Unable to load SQL-DK configuration for name: " + name, e); |
86 throw new SQLException("Unable to load SQL-DK configuration for name: " + name, e); |
87 } |
87 } |
88 } else { |
88 } else { |
89 throw new SQLException("Unsupported URL: " + url); |
89 // The driver should return "null" if it realizes it is the wrong kind of driver to connect to the given URL. |
|
90 return null; |
90 } |
91 } |
91 } |
92 } |
92 |
93 |
93 private Connection getConnection(String connectionName, java.util.Properties info) throws SQLException, ConfigurationException { |
94 private Connection getConnection(String connectionName, java.util.Properties info) throws SQLException, ConfigurationException { |
94 Configuration c = loader.loadConfiguration(); |
95 Configuration c = loader.loadConfiguration(); |