-
Sep 28th, 2011, 06:47 AM
#1
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.
-
Oct 1st, 2012, 12:40 AM
#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
-
Oct 4th, 2012, 04:39 AM
#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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules