tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Fincher" <...@tbird.com>
Subject Re: Connection Pooling Solution
Date Thu, 30 May 2002 19:43:39 GMT
Because the MySql driver is a javax.sql.DataSource and that's what gets
passed back by the pool, making the pool transparent (no pun intended).

That way you can later change the driver or the pooling details without
changing your code (assuming the SQL dialect still works).

Rick

----- Original Message -----

> Possibly a stupid question
> (and probably off-topic as well)...
>
> At 04:50 PM 5/24/02 +0100, Les Hughes wrote:
> >
> >            DataSource ds =
> >(DataSource)ctx.lookup("java:comp/env/jdbc/TestDB");
> >
>
> Is there a reason you used javax.sql.DataSource instead of
org.apache.commons.dbcp.BasicDataSource?



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message