If you are writing a jdbc program, where you use DriverManager, you'd specify a driver class, but when you are relying on a datasource, you specify a class that implements javax.sq.DataSource (or XADatasource if you need XA support).
Regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]
http://forums.java.net/jive/thread.jspa?messageID=291028