Index: jdbc/admin/src/main/java/org/glassfish/jdbc/admin/cli/JDBCConnectionPoolManager.java =================================================================== --- jdbc/admin/src/main/java/org/glassfish/jdbc/admin/cli/JDBCConnectionPoolManager.java (revision 54841) +++ jdbc/admin/src/main/java/org/glassfish/jdbc/admin/cli/JDBCConnectionPoolManager.java (working copy) @@ -92,6 +92,8 @@ private String validateAtmostOncePeriod = "0"; private String connectionLeakTimeout = "0"; private String connectionLeakReclaim = Boolean.FALSE.toString(); + private String statementLeakTimeout = "0"; + private String statementLeakReclaim = Boolean.FALSE.toString(); private String connectionCreationRetryAttempts = "0"; private String connectionCreationRetryInterval = "10"; private String driverclassname = null; @@ -228,6 +230,12 @@ if(connectionLeakReclaim != null){ newResource.setConnectionLeakReclaim(connectionLeakReclaim); } + if(statementLeakTimeout != null){ + newResource.setStatementLeakTimeoutInSeconds(statementLeakTimeout); + } + if(statementLeakReclaim != null){ + newResource.setStatementLeakReclaim(statementLeakReclaim); + } if(connectionCreationRetryInterval != null){ newResource.setConnectionCreationRetryIntervalInSeconds(connectionCreationRetryInterval); } @@ -295,6 +303,8 @@ validateAtmostOncePeriod = (String) attrList.get(VALIDATE_ATMOST_ONCE_PERIOD_IN_SECONDS); connectionLeakTimeout = (String) attrList.get(CONNECTION_LEAK_TIMEOUT_IN_SECONDS); connectionLeakReclaim = (String) attrList.get(CONNECTION_LEAK_RECLAIM); + statementLeakTimeout = (String) attrList.get(STATEMENT_LEAK_TIMEOUT_IN_SECONDS); + statementLeakReclaim = (String) attrList.get(STATEMENT_LEAK_RECLAIM); connectionCreationRetryAttempts = (String) attrList.get(CONNECTION_CREATION_RETRY_ATTEMPTS); connectionCreationRetryInterval = (String) attrList.get(CONNECTION_CREATION_RETRY_INTERVAL_IN_SECONDS); statementTimeout = (String) attrList.get(STATEMENT_TIMEOUT_IN_SECONDS);