Stevo, OK, in the context of tomcat-jdbc, your questions do make more sense. Glad you were able to find the answers.
BTW, I would strongly recommend tomcat-jdbc over DBCP. Been working with it for a while and it's very nice. Dan On Fri, 2011-11-11 at 06:44 -0800, Stevo Slavić wrote: > 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 <dmik...@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-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org >