directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lucasthei...@apache.org
Subject svn commit: r1774099 - /directory/site/trunk/content/api/user-guide/2.1-connection-disconnection.mdtext
Date Tue, 13 Dec 2016 20:40:46 GMT
Author: lucastheisen
Date: Tue Dec 13 20:40:46 2016
New Revision: 1774099

URL: http://svn.apache.org/viewvc?rev=1774099&view=rev
Log:
DIRAPI-287: Documentation is wrong for connection pooling

Modified:
    directory/site/trunk/content/api/user-guide/2.1-connection-disconnection.mdtext

Modified: directory/site/trunk/content/api/user-guide/2.1-connection-disconnection.mdtext
URL: http://svn.apache.org/viewvc/directory/site/trunk/content/api/user-guide/2.1-connection-disconnection.mdtext?rev=1774099&r1=1774098&r2=1774099&view=diff
==============================================================================
--- directory/site/trunk/content/api/user-guide/2.1-connection-disconnection.mdtext (original)
+++ directory/site/trunk/content/api/user-guide/2.1-connection-disconnection.mdtext Tue Dec
13 20:40:46 2016
@@ -112,7 +112,8 @@ The DefaultPoolableLdapConnectionFactory
 
     :::Java
     ...
-    PoolableLdapConnectionFactory factory = new ValidatingPoolableLdapConnectionFactory(
config );
+    LdapConnectionPool pool = new LdapConnectionPool(
+        new ValidatingPoolableLdapConnectionFactory( factory ), poolConfig ) );
     ...
 
 A connection pool using this factory will unbind and rebind any connection that was modified
while it was borrowed (_see the javadoc for more detail_).  This will be slower due to the
additional operations, but not too significantly.



Mime
View raw message