servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r469499 - /incubator/servicemix/branches/servicemix-3.0/servicemix-components/src/main/java/org/apache/servicemix/components/net/SocketClientPoolSupport.java
Date Tue, 31 Oct 2006 14:27:47 GMT
Author: gnodet
Date: Tue Oct 31 06:27:46 2006
New Revision: 469499

URL: http://svn.apache.org/viewvc?view=rev&rev=469499
Log:
SM-677: FTP connection not recovered after ftp server failure/recovery

Modified:
    incubator/servicemix/branches/servicemix-3.0/servicemix-components/src/main/java/org/apache/servicemix/components/net/SocketClientPoolSupport.java

Modified: incubator/servicemix/branches/servicemix-3.0/servicemix-components/src/main/java/org/apache/servicemix/components/net/SocketClientPoolSupport.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-3.0/servicemix-components/src/main/java/org/apache/servicemix/components/net/SocketClientPoolSupport.java?view=diff&rev=469499&r1=469498&r2=469499
==============================================================================
--- incubator/servicemix/branches/servicemix-3.0/servicemix-components/src/main/java/org/apache/servicemix/components/net/SocketClientPoolSupport.java
(original)
+++ incubator/servicemix/branches/servicemix-3.0/servicemix-components/src/main/java/org/apache/servicemix/components/net/SocketClientPoolSupport.java
Tue Oct 31 06:27:46 2006
@@ -44,7 +44,9 @@
 
     public void afterPropertiesSet() throws Exception {
         if (pool == null) {
-            pool = new GenericObjectPool();
+            GenericObjectPool goPool = new GenericObjectPool();
+            goPool.setTestOnBorrow(true);
+            pool = goPool;
         }
         pool.setFactory(this);
     }



Mime
View raw message