You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by lu...@apache.org on 2016/12/13 20:40:46 UTC

svn commit: r1774099 - /directory/site/trunk/content/api/user-guide/2.1-connection-disconnection.mdtext

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.