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

  • 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?

  • #2
    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.

    Comment


    • #3
      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 ..

      ?

      Comment


      • #4
        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.

        Comment

        Working...
        X