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.
Printable View
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.
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
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.