servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r469500 - /incubator/servicemix/trunk/servicemix-components/src/main/java/org/apache/servicemix/components/net/SocketClientPoolSupport.java
Date Tue, 31 Oct 2006 14:28:01 GMT
Author: gnodet
Date: Tue Oct 31 06:28:00 2006
New Revision: 469500

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

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

Modified: incubator/servicemix/trunk/servicemix-components/src/main/java/org/apache/servicemix/components/net/SocketClientPoolSupport.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-components/src/main/java/org/apache/servicemix/components/net/SocketClientPoolSupport.java?view=diff&rev=469500&r1=469499&r2=469500
==============================================================================
--- incubator/servicemix/trunk/servicemix-components/src/main/java/org/apache/servicemix/components/net/SocketClientPoolSupport.java
(original)
+++ incubator/servicemix/trunk/servicemix-components/src/main/java/org/apache/servicemix/components/net/SocketClientPoolSupport.java
Tue Oct 31 06:28:00 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