You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/04/30 01:32:32 UTC

DO NOT REPLY [Bug 48817] Skip validation query and use JDBC API for validation

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

--- Comment #3 from Matt Passell <mp...@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org