[exo-jcr-commits] exo-jcr SVN: r4817 - core/branches/2.3.x/patch/2.3.10/COR-237.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Aug 31 05:23:54 EDT 2011


Author: tolusha
Date: 2011-08-31 05:23:53 -0400 (Wed, 31 Aug 2011)
New Revision: 4817

Modified:
   core/branches/2.3.x/patch/2.3.10/COR-237/COR-237.patch
Log:
COR-237: patch updated

Modified: core/branches/2.3.x/patch/2.3.10/COR-237/COR-237.patch
===================================================================
--- core/branches/2.3.x/patch/2.3.10/COR-237/COR-237.patch	2011-08-30 16:19:12 UTC (rev 4816)
+++ core/branches/2.3.x/patch/2.3.10/COR-237/COR-237.patch	2011-08-31 09:23:53 UTC (rev 4817)
@@ -1,6 +1,6 @@
 Index: exo.core.component.ldap/src/main/java/org/exoplatform/services/ldap/impl/LDAPServiceImpl.java
 ===================================================================
---- exo.core.component.ldap/src/main/java/org/exoplatform/services/ldap/impl/LDAPServiceImpl.java	(revision 4461)
+--- exo.core.component.ldap/src/main/java/org/exoplatform/services/ldap/impl/LDAPServiceImpl.java	(revision 4816)
 +++ exo.core.component.ldap/src/main/java/org/exoplatform/services/ldap/impl/LDAPServiceImpl.java	(working copy)
 @@ -86,6 +86,17 @@
        // TODO move it in configuration ?
@@ -8,13 +8,13 @@
  
 +      if (config.getMinConnection() > 0)
 +      {
-+         env.put("com.sun.jndi.ldap.connect.pool.initsize", Integer.toString(config.getMinConnection()));
-+         env.put("com.sun.jndi.ldap.connect.pool.prefsize", Integer.toString(config.getMinConnection()));
++         System.setProperty("com.sun.jndi.ldap.connect.pool.initsize", Integer.toString(config.getMinConnection()));
++         System.setProperty("com.sun.jndi.ldap.connect.pool.prefsize", Integer.toString(config.getMinConnection()));
 +      }
 +
 +      if (config.getMaxConnection() > 0)
 +      {
-+         env.put("com.sun.jndi.ldap.connect.pool.maxsize", Integer.toString(config.getMaxConnection()));
++         System.setProperty("com.sun.jndi.ldap.connect.pool.maxsize", Integer.toString(config.getMaxConnection()));
 +      }
 +
        env.put("com.sun.jndi.ldap.connect.pool", "true");



More information about the exo-jcr-commits mailing list