/** * Removes a registered shutdown hook for this ConnectionPoolManager instance. */ public synchronized void removeShutdownHook() { try { if (shutdownHook != null) Runtime.getRuntime().removeShutdownHook(shutdownHook); shutdownHook = null; log_info("Removed ConnectionPoolManager shutdown-hook"); } catch (Exception ex) { log_warn("Error removing ConnectionPoolManager shutdown-hook", ex); } }
/** * Registers a shutdown hook for this ConnectionPoolManager instance * to ensure it is released if the JVM exits */ public synchronized void registerShutdownHook() { if (shutdownHook != null) return; try { shutdownHook = new Releaser(this); Runtime.getRuntime().addShutdownHook(shutdownHook); } catch (Exception ex) { log_warn("Error registering shutdown-hook for " + this, ex); } }
log_warn("Unable to register JDBC driver: " + driverClassName, ex);
log_warn("Unable to instantiate listener class for pool " + poolName + ": " + x, ex); log_warn("Unable to instantiate listener class for pool " + poolName + ": " + propListener); log_warn("Listener class specified is not a valid listener: " + propListener); log_warn("Unable to instantiate listener class for pool " + poolName + ": " + propListener, ex.getCause());
log_warn("Unable to deregister JDBC driver: " + driver.getClass().getName(), sqlx);
log_warn("No URL specified for " + poolName); continue; log_warn("Invalid minpool value " + pMinPool + " for " + poolName); minPool = 0; log_warn("Invalid maxpool value " + pMaxPool + " for " + poolName); maxPool = 0; log_warn("Invalid maxsize value " + pMaxSize + " for " + poolName); maxSize = 0; log_warn("Invalid init value " + pInit + " for " + poolName); initSize = 0; log_warn("Invalid idleTimeout value " + pIdleTimeout + " for " + poolName); idleTimeout = 0; log_warn("Invalid releaseTimeout value " + pReleaseTimeout + " for " + poolName); releaseTimeout = 0; log_warn("Invalid logfile specified for pool " + poolName + " - specified file is a directory"); else if (!f.exists() && !f.createNewFile()) log_warn("Invalid logfile specified for pool " + poolName + " - cannot create file " + f.getAbsolutePath()); pool.setLog(new PrintWriter(new FileOutputStream(f, true), true)); log_warn("Invalid logfile specified for pool " + poolName, iox); if (logUtil != null) pool.setLog(logUtil.getLogWriter());