/** * Sets default values for advanced pool properties<br> * * @param connectorPoolObj Connector Connection Pool */ private static void setDefaultAdvancedPoolAttributes(ConnectorConnectionPool connectorPoolObj) { //Other advanced attributes like connection-leak-reclaim, lazy-connection-enlistment, //lazy-connection-association, associate-with-thread are boolean values which are not required //to be explicitly initialized to default values. connectorPoolObj.setMaxConnectionUsage(ConnectorConnectionPool.DEFAULT_MAX_CONNECTION_USAGE); connectorPoolObj.setConnectionLeakTracingTimeout(ConnectorConnectionPool.DEFAULT_LEAK_TIMEOUT); connectorPoolObj.setConCreationRetryAttempts(ConnectorConnectionPool.DEFAULT_CON_CREATION_RETRY_ATTEMPTS); connectorPoolObj.setConCreationRetryInterval(ConnectorConnectionPool.DEFAULT_CON_CREATION_RETRY_INTERVAL); connectorPoolObj.setValidateAtmostOncePeriod(ConnectorConnectionPool.DEFAULT_VALIDATE_ATMOST_ONCE_PERIOD); }
ccp.setMaxConnectionUsage(adminPool.getMaxConnectionUsageCount()); ccp.setConCreationRetryAttempts(adminPool.getConnectionCreationRetryAttempts()); ccp.setConCreationRetryInterval( adminPool.getConnectionCreationRetryIntervalInSeconds());
domainCcp.getValidateAtmostOncePeriodInSeconds()); ccp.setConCreationRetryAttempts( domainCcp.getConnectionCreationRetryAttempts()); ccp.setConCreationRetryInterval(
origCcp.setNonComponent(ccp.isNonComponent()); origCcp.setNonTransactional(ccp.isNonTransactional()); origCcp.setConCreationRetryAttempts(ccp.getConCreationRetryAttempts()); origCcp.setConCreationRetryInterval (ccp.getConCreationRetryInterval());
clone.setConCreationRetryInterval (getConCreationRetryInterval()); clone.setConCreationRetryAttempts(getConCreationRetryAttempts()); clone.setPreferValidateOverRecreate(isPreferValidateOverRecreate()); clone.setPooling(isPoolingOn());