tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stevo Slavić <ssla...@gmail.com>
Subject Re: tomcat-dbcp interceptors
Date Fri, 11 Nov 2011 14:44:45 GMT
Hello Daniel,

You're right, commons-dbcp and tomcat-dbcp seem to be same, I missed
tomcat-jdbc module which seems to provide extensions and judging by
the pom (see [1]) it depends only on tomcat-juli. I found the answers
at [2] and [3].

Thanks!

Regards,
Stevo.

[1] http://repo1.maven.org/maven2/org/apache/tomcat/tomcat-jdbc/7.0.22/tomcat-jdbc-7.0.22.pom
[2] http://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html
[3] http://vigilbose.blogspot.com/2009/03/apache-commons-dbcp-and-tomcat-jdbc.html


On Fri, Nov 11, 2011 at 2:35 PM, Daniel Mikusa <dmikusa@vmware.com> wrote:
>
>
>> 1) Can tomcat-dbcp be used outside of tomcat e.g. in non-web apps?
>
> Yes, but tomcat-dbcp is exactly the same as commons-dbcp.  You would
> probably just want to use commons-dbcp.
>
>> 2) If yes, are all features available as when used within tomcat?
>
> It has the same feature set as commons-dbcp.
>
>  https://commons.apache.org/dbcp/
>
>> 3) Most importantly are custom interceptors supported when tomcat-dbcp
>> is used outside tomcat?
>> 4) Can custom interceptor influence/extend connection validation?
>> Would like not only to configure validation query but also to add
>> extra logic which would process result of the query.
>> 5) Are there any examples, documentation, blog posts showing
>> implementations of custom interceptors?
>
> I'm not exactly sure what you are referring to with regard to the
> interceptors.  Which version of Tomcat are you using?  How are you
> configuring this within Tomcat?
>
> Dan
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message