mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Mark Craig
20.45.2012 5b19ba6fc359ed40f3b0512dad27678145957ed7
Align with r8390
1 files modified
12 ■■■■■ changed files
opendj3/src/main/docbkx/dev-guide/chap-simple-proxy.xml 12 ●●●●● patch | view | raw | blame | history
opendj3/src/main/docbkx/dev-guide/chap-simple-proxy.xml
@@ -76,12 +76,14 @@
  pool of the maximum size you specify.</para>
  <programlisting language="java"
>final List&lt;ConnectionFactory&gt; factories = new LinkedList&lt;ConnectionFactory&gt;();
>final List&lt;ConnectionFactory&gt; factories = new LinkedList&lt;~&gt;();
factories.add(Connections.newFixedConnectionPool(
       Connections.newAuthenticatedConnectionFactory(
           new LDAPConnectionFactory(remoteAddress,remotePort),
           Requests.newSimpleBindRequest(proxyDN, proxyPassword.toCharArray())),
factories.add(Connections.newFixedConnectionPool(Connections
        .newAuthenticatedConnectionFactory(Connections
                .newHeartBeatConnectionFactory(new LDAPConnectionFactory(
                        remoteAddress, remotePort)),
                        Requests.newSimpleBindRequest(proxyDN,
                                proxyPassword.toCharArray())),
       Integer.MAX_VALUE));</programlisting>
  <para>Connections are returned to the pool when you <literal>close()</literal>