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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to