This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.
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.