Dhiren Bhatia wrote:

I'm using BasicDataSource because javax.sql.DataSource does not have methods to set the driver class name, url, username/pwd etc. My app needs to support different databases and the driver is loaded based on which database is installed.



You've got it backwards. It is the responsibility of a J2EE container to use whatever the implementatio it likes and set those parameters and then give your application just javax.sql.DataSource. THAT will make your application portable.


Nix.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to