You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2006/10/31 15:27:47 UTC
svn commit: r469499 -
/incubator/servicemix/branches/servicemix-3.0/servicemix-components/src/main/java/org/apache/servicemix/components/net/SocketClientPoolSupport.java
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);
}