tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r940574 - /tomcat/trunk/modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/DataSourceFactory.java
Date Mon, 03 May 2010 19:12:48 GMT
Author: fhanik
Date: Mon May  3 19:12:48 2010
New Revision: 940574

URL: http://svn.apache.org/viewvc?rev=940574&view=rev
Log:
https://issues.apache.org/bugzilla/show_bug.cgi?id=49241


Modified:
    tomcat/trunk/modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/DataSourceFactory.java

Modified: tomcat/trunk/modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/DataSourceFactory.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/DataSourceFactory.java?rev=940574&r1=940573&r2=940574&view=diff
==============================================================================
--- tomcat/trunk/modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/DataSourceFactory.java
(original)
+++ tomcat/trunk/modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/DataSourceFactory.java
Mon May  3 19:12:48 2010
@@ -109,6 +109,8 @@ public class DataSourceFactory implement
     protected static final String PROP_DATASOURCE= "dataSource";
     protected static final String PROP_DATASOURCE_JNDI = "dataSourceJNDI";
     
+    protected static final String PROP_SUSPECT_TIMEOUT = "suspectTimeout";
+    
     
     public static final int UNKNOWN_TRANSACTIONISOLATION = -1;
     
@@ -452,6 +454,11 @@ public class DataSourceFactory implement
         if (value != null) {
             poolProperties.setDataSourceJNDI(value);
         }
+
+        value = properties.getProperty(PROP_SUSPECT_TIMEOUT);
+        if (value != null) {
+            poolProperties.setSuspectTimeout(Integer.parseInt(value));
+        }
         return poolProperties;
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message