[exo-jcr-commits] exo-jcr SVN: r4464 - in core/branches/2.3.x/patch/2.3.10: COR-237 and 1 other directory.
do-not-reply at jboss.org
do-not-reply at jboss.org
Tue May 31 10:49:06 EDT 2011
Author: areshetnyak
Date: 2011-05-31 10:49:05 -0400 (Tue, 31 May 2011)
New Revision: 4464
Added:
core/branches/2.3.x/patch/2.3.10/COR-237/
core/branches/2.3.x/patch/2.3.10/COR-237/COR-237.patch
Log:
EXOJCR-1366 : Patch for cor-2.3.10 was committed in folder with patches
Added: 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 (rev 0)
+++ core/branches/2.3.x/patch/2.3.10/COR-237/COR-237.patch 2011-05-31 14:49:05 UTC (rev 4464)
@@ -0,0 +1,22 @@
+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 (working copy)
+@@ -86,6 +86,17 @@
+ // TODO move it in configuration ?
+ env.put("com.sun.jndi.ldap.connect.timeout", "60000");
+
++ 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()));
++ }
++
++ if (config.getMaxConnection() > 0)
++ {
++ env.put("com.sun.jndi.ldap.connect.pool.maxsize", Integer.toString(config.getMaxConnection()));
++ }
++
+ env.put("com.sun.jndi.ldap.connect.pool", "true");
+ env.put("java.naming.ldap.version", config.getVerion());
+ env.put("java.naming.ldap.attributes.binary", "tokenGroups");
More information about the exo-jcr-commits
mailing list