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

  • LDAP connection pooling

    Hi, I'm using org.springframework.ldap.pool.factory.PoolingConte xtSource and I'd like to be able to rebuild the connection pool at failover without using a DirContextValidator, is this possible?

    Thanks,

    Chris.

  • #2
    Hi Chris

    I am in the same situation. Did you resolve your question. Can you please help with the answers to your own question.

    Thanks, Ravi

    Comment


    • #3
      Ravi, I had to use a java.lang.reflect.Proxy to intercept calls to DirContext implementations then use the proxy to catch exceptions which should rebuild the connection pool. A flag is then set which is used by a dummy validator to fail validation without the extra network operation. Using Proxies can incur extra overhead, so we make sure to only proxy DirContext calls when normal validation is disabled.

      Comment

      Working...
      X