https://bz.apache.org/bugzilla/show_bug.cgi?id=55662

--- Comment #2 from Jonathan Leech <jonat...@gmail.com> ---
The DataSource or the ConnectionPool should also own the Driver instance,
rather than the PooledConnection object. That a new instance of the Driver is
instantiated via reflection for every Connection the pool creates is benign in
most cases and catastrophic in others (e.g. Apache Phoenix will create a set of
zookeeper connections for each instance of PhoenixDriver, which blows up
spectacularly). Standard JDBC has the DriverManager create the single instance
of the driver. Tomcat-dbcp seems to get it mostly right, although I think
Java's DriverManager may create an instance of the Driver, and each pool may
create a redundant one.

-- 
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