protected Driver findPassthru(String url) throws SQLException { // registers the passthru drivers, if configured s P6ModuleManager.getInstance(); String realUrl = extractRealUrl(url); Driver passthru = null; for (Driver driver: registeredDrivers() ) { try { if (driver.acceptsURL(extractRealUrl(url))) { passthru = driver; break; } } catch (SQLException e) { } } if( passthru == null ) { throw new SQLException("Unable to find a driver that accepts " + realUrl); } return passthru; }
jdbcEventListener.onBeforeGetConnection(connectionInformation); try { conn = passThru.connect(extractRealUrl(url), properties); connectionInformation.setConnection(conn); connectionInformation.setTimeToGetConnectionNs(System.nanoTime() - start);
protected Driver findPassthru(String url) throws SQLException { // registers the passthru drivers, if configured s P6ModuleManager.getInstance(); String realUrl = extractRealUrl(url); Driver passthru = null; for (Driver driver: registeredDrivers() ) { try { if (driver.acceptsURL(extractRealUrl(url))) { passthru = driver; break; } } catch (SQLException e) { } } if( passthru == null ) { throw new SQLException("Unable to find a driver that accepts " + realUrl); } return passthru; }
jdbcEventListener.onBeforeGetConnection(connectionInformation); try { conn = passThru.connect(extractRealUrl(url), properties); connectionInformation.setConnection(conn); connectionInformation.setTimeToGetConnectionNs(System.nanoTime() - start);