https://issues.apache.org/bugzilla/show_bug.cgi?id=48817

--- Comment #3 from Matt Passell <mpass...@grovehillsoftware.com> 2010-04-29 
19:32:27 EDT ---
(In reply to comment #2)
> > There should be plugaable Validator which could be configured in the
> > poolProperties. e.g 
> 
> why not just an interceptor if you want custom validation?

Looking over the code in ConnectionPool, it appears that the existing
validation is run within borrowConnection(), when it's still possible to ask
the pool for another Connection if the first one turns out to be invalid. In
contrast, the JdbcInterceptors are run within setupConnection(), when it's
already too late to go back to the pool. Given that, is it possible to write an
interceptor that can participate in the validation process? If not, I'd agree
with VickyKak that having some form of pluggable Validator would be useful.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to