View Full Version : connectionpool timeout
kakoni
Sep 15th, 2006, 03:53 AM
So I'm getting lots of timeout exceptions when using pooling with ldapcontextsource.
I probably have set the
com.sun.jndi.ldap.connect.pool.timeout to something but the question goes
-What is the best place to set that?
Appserver env config , passing -Dcom.sun.jndi.ldap.connect.pool.timeout ..or?
rasky
Sep 15th, 2006, 06:26 AM
The pooling configuration properties need to be set as global System properties. As you suggest, placing them in the app server env configuration could be appropriate.
kakoni
Sep 15th, 2006, 07:12 AM
Allright. What about
<property name="baseEnvironmentProperties">
<map>
<entry key="com.sun.jndi.ldap.connect.pool.timeout" value="300000"/>
</map>
</property>
Defined for org.springframework.ldap.support.LdapContextSource ..
?
rasky
Sep 15th, 2006, 08:23 AM
Allright. What about
<property name="baseEnvironmentProperties">
<map>
<entry key="com.sun.jndi.ldap.connect.pool.timeout" value="300000"/>
</map>
</property>
Defined for org.springframework.ldap.support.LdapContextSource ..
?
Nope, that would make the property local to the LdapContext created by the ContextSource - the property needs to be System wide.
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.