directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r1002804 - in /websites/staging/directory/trunk/content: ./ api/user-guide/2.10-ldap-connection-template.html
Date Wed, 14 Dec 2016 16:32:02 GMT
Author: buildbot
Date: Wed Dec 14 16:32:01 2016
New Revision: 1002804

Log:
Staging update by buildbot for directory

Modified:
    websites/staging/directory/trunk/content/   (props changed)
    websites/staging/directory/trunk/content/api/user-guide/2.10-ldap-connection-template.html

Propchange: websites/staging/directory/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Wed Dec 14 16:32:01 2016
@@ -1 +1 @@
-1774099
+1774290

Modified: websites/staging/directory/trunk/content/api/user-guide/2.10-ldap-connection-template.html
==============================================================================
--- websites/staging/directory/trunk/content/api/user-guide/2.10-ldap-connection-template.html
(original)
+++ websites/staging/directory/trunk/content/api/user-guide/2.10-ldap-connection-template.html
Wed Dec 14 16:32:01 2016
@@ -221,9 +221,12 @@ h2:hover > .headerlink, h3:hover > .head
 <span class="n">poolConfig</span><span class="o">.</span><span
class="na">timeBetweenEvictionRunsMillis</span> <span class="o">=</span>
<span class="o">-</span><span class="mi">1L</span><span class="o">;</span>
 <span class="n">poolConfig</span><span class="o">.</span><span
class="na">whenExhaustedAction</span> <span class="o">=</span> <span
class="n">GenericObjectPool</span><span class="o">.</span><span class="na">WHEN_EXHAUSTED_BLOCK</span><span
class="o">;</span>
 
+<span class="c1">// could use DefaultPoolableLdapConnectionFactory instead</span>
+<span class="c1">// see javadoc for ValidatingPoolableLdapConnectionFactory</span>
+<span class="c1">// for an explanation</span>
 <span class="n">LdapConnectionTemplate</span> <span class="n">ldapConnectionTemplate</span>
<span class="o">=</span> 
     <span class="k">new</span> <span class="nf">LdapConnectionTemplate</span><span
class="o">(</span> <span class="k">new</span> <span class="n">LdapConnectionPool</span><span
class="o">(</span>
-        <span class="k">new</span> <span class="nf">PoolableLdapConnectionFactory</span><span
class="o">(</span> <span class="n">factory</span> <span class="o">),</span>
<span class="n">poolConfig</span> <span class="o">)</span> <span
class="o">);</span>
+        <span class="k">new</span> <span class="nf">ValidatingPoolableLdapConnectionFactory</span><span
class="o">(</span> <span class="n">factory</span> <span class="o">),</span>
<span class="n">poolConfig</span> <span class="o">)</span> <span
class="o">);</span>
 </pre></div>
 
 



Mime
View raw message