java/jdbc-dk-driver/src/info/globalcode/sql/dk/jdbc/Driver.java
branchv_0
changeset 235 8ce612cca4d8
parent 195 aed11d9107bf
equal deleted inserted replaced
234:305871254838 235:8ce612cca4d8
    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();