Announcement Announcement Module
Collapse
No announcement yet.
connectionpool timeout Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • kakoni
    started a topic connectionpool timeout

    connectionpool timeout

    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
    replied
    Originally posted by kakoni
    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.

    Leave a comment:


  • kakoni
    replied
    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 ..

    ?

    Leave a comment:


  • rasky
    replied
    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.

    Leave a comment:

Working...
X